Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start failover controller. Parent znode does not exist #3

Open
HbnKing opened this issue Dec 11, 2018 · 0 comments
Open

Unable to start failover controller. Parent znode does not exist #3

HbnKing opened this issue Dec 11, 2018 · 0 comments
Labels

Comments

@HbnKing
Copy link
Owner

HbnKing commented Dec 11, 2018

Unable to start failover controller. Parent znode does not exis

zkfc 无法启动
因为znode节点被删除 .重新格式化即可
首次启动集群设置

  1. 启动所有节点上的zookeeper
[hadoop@djt11 hadoop]$ runRemoteCmd.sh "/home/hadoop/app/zookeeper/bin/zkServer.sh start" 

zookeeper
2.启动所有节点上的journalnode

3.首先在主节点上(比如,djt11)执行格式化namenode

[hadoop@djt11 hadoop]$ bin/hdfs namenode -format / /namenode 格式化
[hadoop@djt11 hadoop]$ bin/hdfs zkfc -formatZK //格式化高可用
[hadoop@djt11 hadoop]$bin/hdfs namenode //启动namenode

4、与此同时,需要在备节点(比如,djt12)上执行数据同步

[hadoop@djt12 hadoop]$ bin/hdfs namenode -bootstrapStandby  

//同步主节点和备节点之间的元数据

@HbnKing HbnKing added the hdfs label Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant