Go教程

hdfs追加解决报错:Failed to replace a bad datanode on the existing pipeline due to no more goo......

本文主要是介绍hdfs追加解决报错:Failed to replace a bad datanode on the existing pipeline due to no more goo......,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

  在查询过程中,网上的大部分方法是修改hdfs-site.xml配置文件,添加

<property>
<name>dfs.namenode.http.address</name>
<value>slave1:50070</value>
</property>
<property>
<name>dfs.support.append</name>
<value>true</value>
</property>
<property>
<name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
<value>NEVER</value>
</property>
<property>
<name>dfs.client.block.write.replace-datanode-on-failure.enable</name>
<value>true</value>
</property>

但我添加后依旧报错,在下面博文找到解决方法(https://blog.csdn.net/caiandyong/article/details/44730031?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-2.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-2.no_search_link)

java代码中添加

conf.set("dfs.client.block.write.replace-datanode-on-failure.policy","NEVER");
conf.set("dfs.client.block.write.replace-datanode-on-failure.enable","true");

这篇关于hdfs追加解决报错:Failed to replace a bad datanode on the existing pipeline due to no more goo......的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!