gpt4 book ai didi

hadoop - namenode.NameNode : Could not initialize shared edits dir

转载 作者:可可西里 更新时间:2023-11-01 16:14:06 26 4
gpt4 key购买 nike

您好,我在 HA 集群配置时间遇到了所有这些错误。请帮助我哪里错了。

14/09/08 11:13:38 INFO namenode.AclConfigFlag: ACLs enabled? false
14/09/08 11:13:38 INFO common.Storage: Lock on /usr/local/hadoop/dfs/tmp/dfs/name/in_use.lock acquired by nodename 1170@n3
14/09/08 11:13:38 WARN namenode.FSNamesystem: Encountered exception loading fsimage
java.io.IOException: NameNode is not formatted.
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:212)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:891)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:638)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initializeSharedEdits(NameNode.java:980)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1340)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1424)
14/09/08 11:13:38 ERROR namenode.NameNode: Could not initialize shared edits dir
java.io.IOException: NameNode is not formatted.
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:212)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:891)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:638)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initializeSharedEdits(NameNode.java:980)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1340)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1424)
14/09/08 11:13:38 INFO util.ExitUtil: Exiting with status 1`
`
14/09/08 11:13:38 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at n3/192.168.1.27
************************************************************/

最佳答案

使用 hadoop namenode -format 格式化您的 namenode,然后使用 start-all.sh 启动您的集群

关于hadoop - namenode.NameNode : Could not initialize shared edits dir,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25718124/

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