2
我無法運行start-dfs.sh
無法運行start-dfs.sh
[email protected]:~$ start-dfs.sh
14/10/19 19:26:50 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Starting secondary namenodes [0.0.0.0]
0.0.0.0: ssh: connect to host 0.0.0.0 port 22: Connection refused
14/10/19 19:27:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[email protected]:~$
我做了安裝時的hadoop如下:
ssh-keygen -t rsa -P ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
看來你有一個防火牆,防止遠程SSH連接。你檢查過'iptables'嗎? – alvits 2014-10-20 07:03:36
您是否將默認SSH端口修改爲端口22以外的其他端口? – skyjacks 2014-11-03 20:19:11