hdfs namenode -format 报错

21:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:02 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:03 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:03 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:04 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:04 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:05 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:05 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:06 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:06 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:07 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:07 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:08 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:08 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:09 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:09 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:10 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:10 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:11 INFO ipc.Client: Retrying connect to server: hcg01/192.168.1.221:8485. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:11 WARN namenode.NameNode: Encountered exception during format: 
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 5 successful responses:
192.168.1.226:8485: false
192.168.1.227:8485: false
192.168.1.223:8485: false
192.168.1.224:8485: false
192.168.1.222:8485: false
1 exceptions thrown:
192.168.1.221:8485: Call From hcg01/192.168.1.221 to hcg01:8485 failed on connection exception: java.net.ConnectException: 拒绝连接; 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:884)
at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:937)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
15/08/28 08:52:11 INFO ipc.Client: Retrying connect to server: hcg05/192.168.1.225:8485. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/08/28 08:52:11 FATAL namenode.NameNode: Failed to start namenode.
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 5 successful responses:
192.168.1.226:8485: false
192.168.1.227:8485: false
192.168.1.223:8485: false
192.168.1.224:8485: false
192.168.1.222:8485: false
1 exceptions thrown:
192.168.1.221:8485: Call From hcg01/192.168.1.221 to hcg01:8485 failed on connection exception: java.net.ConnectException: 拒绝连接; 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:884)
at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:937)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)


HA模式第一次或删除格式化版本后格式化失败先启动 ./start-dfs.sh
再进行 hdfs namenode -format




问题解决



15/08/28 09:04:27 INFO common.Storage: Storage directory /home/hcg/hadoop/hadoop-2.6.0/mydata/name has been successfully formatted.
15/08/28 09:04:28 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
15/08/28 09:04:28 INFO util.ExitUtil: Exiting with status 0
15/08/28 09:04:28 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at hcg01/192.168.1.221
************************************************************/
  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值