Hadoop - java.net.ConnectException: Connection refused

后端 未结 5 944
无人及你
无人及你 2021-02-15 23:54

I want connect to hdfs (in localhost) and i have a error:

Call From despubuntu-ThinkPad-E420/127.0.1.1 to localhost:54310 failed on connection exception: java.net.Connec

5条回答
  •  青春惊慌失措
    2021-02-16 00:20

    I was getting similar error. Upon checking I found that my namenode service was in stopped state.

    check status of the namenode sudo status hadoop-hdfs-namenode

    if its not in started/running state

    start namenode service sudo start hadoop-hdfs-namenode

    Do keep in mind that it takes time before name node service becomes fully functional after restart. It reads all the hdfs edits in memory. You can check progress of this in /var/log/hadoop-hdfs/ using command tail -f /var/log/hadoop-hdfs/{Latest log file}

提交回复
热议问题