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

后端 未结 15 766
心在旅途
心在旅途 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:15

    From the netstat output you can see the process is listening on address 127.0.0.1

    tcp        0      0 127.0.0.1:9000          0.0.0.0:*  ...
    

    from the exception message you can see that it tries to connect to address 127.0.1.1

    java.net.ConnectException: Call From marta-komputer/127.0.1.1 to localhost:9000 failed ...
    

    further in the exception it's mentionend

    For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
    

    on this page you find

    Check that there isn't an entry for your hostname mapped to 127.0.0.1 or 127.0.1.1 in /etc/hosts (Ubuntu is notorious for this)

    so the conclusion is to remove this line in your /etc/hosts

    127.0.1.1       marta-komputer
    

提交回复
热议问题