无法运行start-dfs.sh [英] unable to run start-dfs.sh

查看:645
本文介绍了无法运行start-dfs.sh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法运行 start-dfs.sh

  ubuntu @ UBUNTU:〜$ start-dfs.sh 
14/10/19 19:26:50 WARN util.NativeCodeLoader:无法为您的平台加载native-hadoop库...在适用的情况下使用builtin-java类
在[localhost]上启动namenodes
localhost:ssh:连接到主机localhost端口22:连接被拒绝
localhost:ssh:连接到主机localhost端口22:连接被拒绝
从第二个namenodes [0.0.0.0]
0.0.0.0:ssh:连接到主机0.0.0.0端口22:连接被拒绝
14/10/19 19:27:19 WARN util.NativeCodeLoader:无法加载本机-hadoop library for your platform ...在适用的地方使用builtin-java类
ubuntu @ UBUNTU:〜$

我在安装hadoop时做了以下事情:

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


解决方案 ssh localhost 工作?我猜不会。你必须先做好这项工作。你必须有公钥/私钥集合的工作组合。有关更多信息,请参阅google 无密码SSH登录或在此查看示例: http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html


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

解决方案

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

这篇关于无法运行start-dfs.sh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆