hadoop2.5.2格式化hdfs报错

16/05/31 20:30:38 WARN namenode.FSEditLog: No class configured for node2, dfs.namenode.edits.journal-plugin.node2 is empty
16/05/31 20:30:38 FATAL namenode.NameNode: Exception in namenode join
java.lang.IllegalArgumentException: No class configured for node2
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.getJournalClass(FSEditLog.java:1532)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1546)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournals(FSEditLog.java:267)
at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournalsForWrite(FSEditLog.java:233)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:920)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1473)
16/05/31 20:30:38 INFO util.ExitUtil: Exiting with status 1

hdfs-site.xml配置如下


dfs.nameservices
mycluster


dfs.ha.namenodes.mycluster
nn1,nn2


dfs.namenode.rpc-address.mycluster.nn1
node1:8020


dfs.namenode.rpc-address.mycluster.nn2
node2:8020


dfs.namenode.http-address.mycluster.nn1
node1:50070


dfs.namenode.http-address.mycluster.nn2
node2:50070


dfs.namenode.shared.edits.dir
node2:8485;node3:8485;node4:8485/mycluster


dfs.client.failover.proxy.provider.mycluster
org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider


dfs.ha.fencing.methods
sshfence


dfs.ha.fencing.ssh.private-key-files
/home/hadoop/.ssh/id_dsa


dfs.journalnode.edits.dir
/usr/hadoop/journalnodedata


dfs.ha.automatic-failover.enabled
true

1个回答

dfs.namenode.edits.journal-plugin.node2这个应该配什么东西

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐