我已经被困在这里几天了,我在互联网上尝试了很多方法,但它没有用,所以我在stackoverflow上注册并写下我的第一个问题。 我的环境是HDP2.4和Ubuntu14.04 LTS
日志信息如下:
safemode: Call From master/9.119.131.105 to master:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
2016-04-21 15:59:57,796 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://master:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From master/9.119.131.105 to master:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
(1)。首先我试图避开安全模式,但它不是这个问题的关键。
(2)。然后我开始使用8020的master端口,master是我的集群的namenode,我确信hosts文件是正确的:
9.119.131.105 master
(3).ssh函数很好,集群中的四个节点可以互不加载密码
(4)。我确定防火墙已关闭
# /etc/init.d/iptables stop
# ufw status
Status: inactive
(5)。我还试图手动打开8020端口:
# iptables -A INPUT -p tcp --dport 8020 -j ACCEPT
它仍然无法运作.....
(6)。我试过了:
# telnet master 8020
但:
telnet:Unable to connect to remote host: Connect refused
(7)。我发现不仅8020端口无法正常工作,而且50070无法正常工作
(8)。我确定配置文件中的参数是8020:
fs.defaultFS
hdfs://master:8020
dfs.namenode.rpc-address
master:8020
我期待有人可以帮助我,我会非常感激。
谢谢!