org.apache.hadoop.hdfs.qjournal.protocol.JournalNotFormattedException: Journal Storage Directory XXX not formatted
1.关停集群
2.启动zk
zkServer.sh start
3.启动journalnode
hdfs --daemon start 启动journalnode
4.初始化journalnode
hdfs namenode -initializeSharedEdits
org.apache.hadoop.ha.ZKFailoverController: Unable to start failover controller. Parent znode does not exist.
hadoopHA启动后,两台节点都是active或都是standby。
1.格式化zkfc
hdfs zkfc -formatZK
2.启动zkfc
hadoop-daemon.sh start zkfc
3.重新选举
hdfs haadmin -failover nn1 nn2
4.重启集群
略
|