当前位置:   article > 正文

ERROR:格式化hdfs时出现connection-refused_名称节点格式化拒绝连接

名称节点格式化拒绝连接

解决方法: 
(先确保你的每个节点网络设置中 勾选了 Available to all users) 
重点来了!!!——> 先用./zkServer.sh start 启动各个zookeeper,再用./ Hadoop-daemon.sh start journalnode启动各个NodeName上的 JournalNode进程。然后再进行格式化即可。

问题描述:

  1. Re-format filesystem in Storage Directory /itcast/hadoop-2.6.0/tmp/dfs/name ? (Y or N) y
  2. 16/04/17 10:47:26 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  3. 16/04/17 10:47:26 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  4. 16/04/17 10:47:26 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  5. 16/04/17 10:47:27 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  6. 16/04/17 10:47:27 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  7. 16/04/17 10:47:27 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  8. 16/04/17 10:47:28 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  9. 16/04/17 10:47:28 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  10. 16/04/17 10:47:28 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  11. 16/04/17 10:47:29 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  12. 16/04/17 10:47:29 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  13. 16/04/17 10:47:29 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  14. 16/04/17 10:47:30 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  15. 16/04/17 10:47:30 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  16. 16/04/17 10:47:30 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  17. 16/04/17 10:47:31 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  18. 16/04/17 10:47:31 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  19. 16/04/17 10:47:31 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  20. 16/04/17 10:47:32 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  21. 16/04/17 10:47:32 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  22. 16/04/17 10:47:32 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  23. 16/04/17 10:47:33 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  24. 16/04/17 10:47:33 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  25. 16/04/17 10:47:33 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  26. 16/04/17 10:47:34 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  27. 16/04/17 10:47:34 INFO ipc.Client: Retrying connect to server: itcast05/192.168.1.205:8485. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  28. 16/04/17 10:47:34 INFO ipc.Client: Retrying connect to server: itcast07/192.168.1.207:8485. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  29. 16/04/17 10:47:35 INFO ipc.Client: Retrying connect to server: itcast06/192.168.1.206:8485. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
  30. 16/04/17 10:47:35 WARN namenode.NameNode: Encountered exception during format:
  31. org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 exceptions thrown:
  32. 192.168.1.206:8485: Call From itcast01/192.168.1.201 to itcast06:8485 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
  33. at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
  34. at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
  35. at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
  36. at org.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:884)
  37. at org.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
  38. at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:937)
  39. at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
  40. at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/241038
推荐阅读
相关标签
  

闽ICP备14008679号