【发布时间】:2016-11-17 02:41:20
【问题描述】:
我无法运行start-dfs.sh
ubuntu@UBUNTU:~$ 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
ubuntu@UBUNTU:~$
我在安装 hadoop 时做了以下操作:
ssh-keygen -t rsa -P ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
【问题讨论】:
-
您的防火墙似乎阻止了远程 ssh 连接。你检查过
iptables吗? -
您是否将默认 SSH 端口修改为端口 22 以外的其他端口?
标签: ubuntu hadoop ssh localhost