hadoop - Connection refused on namenode

烈酒焚心 提交于 2019-11-30 13:05:16

I think the problem is that your master is listening on 127.0.0.1:9000, so datanode can't connect because it is not listening at 192.168.1.101:9000 (theoretically, a good place to listen is 0.0.0.0:9000 since avoids this problems, but seems this configuration is not accepted).

Maybe will fix modifying your /etc/hosts deleting the first line, or try first just with:

127.0.0.1 localhost
192.168.1.101 RM
192.168.1.103 slv

-- edit: read comments bellow

I had the same problem, I changed

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://localhost:8020</value>
</property>

in core-site.xml to

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://ip-address:8020</value>
</property>

and it worked

Levin

I encountered the same issue. After ran jps, we can see all the namenode and datanode are running up. but cannot see the active node in the web page. And I found I put 127.0.0.1 master in /etc/hosts. After removed it. the slaves can telnet master 9000.

My /etc/hosts looks like:

127.0.0.1   localhost

192.168.139.129 slave1

192.168.139.130 slave2

192.168.139.128 master
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!