3

Hi could anyone help me out im a newbie to hadoop wanted to try this feature out.so can anyone of you help.Im running on a single node cluster.

$ 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)
4

2 回答 2

1

The error speaks for itself: looks like you forgot to change a setting hadoop uses.

于 2012-07-25T11:10:13.063 回答
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
于 2012-08-02T09:30:56.507 回答