你好,有人可以帮助我一个新手,因为hadoop想要尝试这个功能。所以你们中的任何人都可以帮忙。我在单个节点集群上运行。
$ hdfs zkfc
Exception in thread "main" org.apache.hadoop.HadoopIllegalArgumentException: HA is not enabled for this namenode.
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.setConf(DFSZKFailoverController.java:122)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:66)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:168)
答案 0 :(得分:1)
错误不言而喻:看起来你忘了更改hadoop使用的设置。
答案 1 :(得分:1)
$ sudo service hadoop-hdfs-namenode start
$ sudo -u hdfs hdfs namenode -bootstrapStandby
$ sudo service hadoop-hdfs-namenode start
$ sudo service hadoop-hdfs-zkfc start
This is for configuring NN.And it works!! Thanks