namenode.namenode:无法初始化共享目录

mnowg1ta  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(560)

嗨,所有这些错误,我是在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

************************************************************/
c3frrgcw

c3frrgcw1#

使用设置namenode的格式 hadoop namenode -format 然后用 start-all.sh

相关问题