无法运行start-dfs.sh

时间:2014-10-19 23:57:08

标签: ubuntu hadoop ssh localhost

我无法运行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

1 个答案:

答案 0 :(得分:0)

ssh localhost是否有效?我猜不会。你必须先做好这项工作。您必须具有公钥/私钥集的工作组合。有关详情,请访问Google passwordless SSH login或在此处查看示例:http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html