unable to run start-dfs.sh

≡放荡痞女 提交于 2019-12-12 19:13:33

问题


I am unable to run 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:~$

I did the following while installing hadoop:

ssh-keygen -t rsa -P ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

回答1:


Does ssh localhost work? I guess not. You have to make that work first. You have to have a working combination of public/private key set. For more information, google passwordless SSH login or have a look for example here: http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html



来源:https://stackoverflow.com/questions/26456740/unable-to-run-start-dfs-sh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!