2

纠结了好几天,网上试了很多方法都不管用,于是在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).然后我开始在master的8020端口上工作,master是我集群的namenode,我确定hosts文件是正确的:

9.119.131.105 master

(3).ssh功能好,集群内4个节点无需密码即可相互加载

(4).I'm sure the fire wall is off

# /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

我期待有人可以帮助我,我将非常感激thant。

谢谢!

4

0 回答 0