尝试在我的群集上进行HA配置。我设法在一个活动的集群上完成了更多的配置。此时,我有两个NN启动并运行,一个处于活动状态,第二个处于待机状态。但是,辅助节点陷入安全模式。此外,当我启动它时,主名称节点也进入安全模式,但是使用-safemode leave命令,我设法让它再次工作(然后将其转换为活动状态)。
我正在使用三个与主要NN一起活动的日志节点
这是来自辅助名称节点的日志:
The reported blocks 0 needs additional 787 blocks to reach the threshold 0.9990 of total blocks 787.
The number of live datanodes 0 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
2016-05-22 15:33:35,144 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Edits file http://xxxxxxxyyyy:8480/getJournal?jid=Foundation&segmentTxId=94718&storageInfo=-60%3A2109188697%3A0%3ACID$
2016-05-22 15:33:35,145 INFO org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Loaded 7 edits starting from txid 94717
2016-05-22 15:35:35,156 INFO org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Triggering log roll on remote NameNode zzzzzzz.zzzz.zzz/10.0.0.4:54310
2016-05-22 15:35:35,386 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream@4656dc3a expecting start txid #94725
2016-05-22 15:35:35,386 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Start loading edits file http://xxxxxx:8480/getJournal?jid=Foundation&segmentTxId=94725&storageInfo=-60%3A2109188697%$
2016-05-22 15:35:35,386 INFO org.apache.hadoop.hdfs.server.namenode.EditLogInputStream: Fast-forwarding stream 'http://xxxxxx:8480/getJournal?jid=Foundation&segmentTxId=94725&storageInfo=-60%3A2$
2016-05-22 15:35:35,386 INFO org.apache.hadoop.hdfs.server.namenode.EditLogInputStream: Fast-forwarding stream 'http://xxxxxx:8480/getJournal?jid=Foundation&segmentTxId=94725&storageInfo=-60%3A2$
2016-05-22 15:35:35,392 INFO org.apache.hadoop.hdfs.StateChange: STATE* Safe mode ON.
The reported blocks 0 needs additional 787 blocks to reach the threshold 0.9990 of total blocks 787.
The number of live datanodes 0 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
2016-05-22 15:35:35,393 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Edits file http://xxxxxx:8480/getJournal?jid=Foundation&segmentTxId=94725&storageInfo=-60%3A2109188697%3A0%3ACID-f5cb$
2016-05-22 15:35:35,393 INFO org.apache.hadoop.hdfs.server.namenode.ha.EditLogTailer: Loaded 7 edits starting from txid 94724