Hadoop cluster setup - java.net.ConnectException: Connection refused

后端 未结 15 794
心在旅途
心在旅途 2020-11-29 02:31

I want to setup a hadoop-cluster in pseudo-distributed mode. I managed to perform all the setup-steps, including startuping a Namenode, Datanode, Jobtracker and a Tasktracke

15条回答
  •  孤独总比滥情好
    2020-11-29 03:11

    hduser@marta-komputer:/usr/local/hadoop$ jps

    11696 ResourceManager

    11842 NodeManager

    11171 NameNode

    11523 SecondaryNameNode

    12167 Jps

    Where is your DataNode? Connection refused problem might also be due to no active DataNode. Check datanode logs for issues.

    UPDATED:

    For this error:

    15/03/01 00:59:34 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032 java.net.ConnectException: Call From marta-komputer.home/192.168.1.8 to marta-komputer:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

    Add these lines in yarn-site.xml:

    
    yarn.resourcemanager.address
    192.168.1.8:8032
    
    
    yarn.resourcemanager.scheduler.address
    192.168.1.8:8030
    
    
    yarn.resourcemanager.resource-tracker.address
    192.168.1.8:8031
    
    

    Restart the hadoop processes.

提交回复
热议问题