码迷,mamicode.com
首页 > 其他好文 > 详细

20140709 NameNode bug2

时间:2014-07-11 11:01:55      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   strong   数据   

我用命令:bin/hdfs  namenode  -format 格式化NameNode时报下面的错:

14/07/09 17:12:49 WARN namenode.NameNode: Encountered exception during format: 
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
192.168.56.200:8485: Call From hadoop0/192.168.56.200 to hadoop0:8485 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
	at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
	at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
	at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
	at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:871)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:841)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1256)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1370)
14/07/09 17:12:49 INFO ipc.Client: Retrying connect to server: hadoop1/192.168.56.201:8485. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
14/07/09 17:12:49 INFO ipc.Client: Retrying connect to server: hadoop2/192.168.56.202:8485. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
14/07/09 17:12:49 FATAL namenode.NameNode: Exception in namenode join
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
192.168.56.200:8485: Call From hadoop0/192.168.56.200 to hadoop0:8485 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
	at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
	at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
	at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
	at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:871)
	at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:841)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1256)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1370)
14/07/09 17:12:49 INFO util.ExitUtil: Exiting with status 1
14/07/09 17:12:49 INFO namenode.NameNode: SHUTDOWN_MSG:

   原因:NN和NN数据共享用到了journalnode 

 解决: sbin/hadoop-daemon.sh start journalnode

     

20140709 NameNode bug2,布布扣,bubuko.com

20140709 NameNode bug2

标签:style   blog   http   java   strong   数据   

原文地址:http://www.cnblogs.com/muzhongjiang/p/3834031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!