gpt4 book ai didi

java - 尝试执行 hdfs zkfc 命令时弹出错误

转载 作者:可可西里 更新时间:2023-11-01 14:35:46 33 4
gpt4 key购买 nike

大家好,我是 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)

最佳答案

$ 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

关于java - 尝试执行 hdfs zkfc 命令时弹出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11648141/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com