• ERROR:格式化hdfs时出现connection-refused


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

    问题描述:

    Re-format filesystem in Storage Directory /itcast/hadoop-2.6.0/tmp/dfs/name ? (Y or N) y
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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/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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    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)
    16/04/17 10:47:35 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.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
            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)
  • 相关阅读:
    一个或多个listeners启动失败,更多详细信息查看对应的容器日志文件
    java: Compilation failed: internal java compiler error
    新建IEDA项目,运行跳出页面404
    windows版 nvm 1.1.7 安装(填坑)
    向量法求三角形垂点
    error C4430:missing type specifier 解决错误
    QML 从无到有 3 (自动更新)
    QML 从无到有 2 (移动适配)
    QML 从无到有 (基础)
    c++ builder 2010 错误 F1004 Internal compiler error at 0x9740d99 with base 0x9
  • 原文地址:https://www.cnblogs.com/shiguangmanbu2016/p/5932872.html
Copyright © 2020-2023  润新知