使用start-all.sh启动hadoop进程时遇到问题 [英] starting hadoop process using start-all.sh runs into issues

查看:375
本文介绍了使用start-all.sh启动hadoop进程时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用redhat linux 4.1.2,当我尝试使用以下命令启动hadoop时,要求输入root @ localhost密码.我不明白在这里输入什么密码.

i am using redhat linux 4.1.2 When i try to start hadoop using the below command it asks for root@localhost password. I don't understand what password to enter here.

sreenath @ sreenath-pc#sudo -i [root @ sreenath-pc hadoop-1.1.1]# bin/start-all.sh警告:不建议使用$ HADOOP_HOME.

sreenath@sreenath-pc# sudo -i [root@sreenath-pc hadoop-1.1.1]# bin/start-all.sh Warning: $HADOOP_HOME is deprecated.

启动名称节点,登录到 /opt/hadoop-1.1.1/libexec/../logs/hadoop-root-namenode-sreenath-pc .out root @ localhost的密码:root @ localhost的密码:localhost: 权限被拒绝,请重试.

starting namenode, logging to /opt/hadoop-1.1.1/libexec/../logs/hadoop-root-namenode-sreenath-pc .out root@localhost's password: root@localhost's password: localhost: Permission denied, please try again.

[1] +已停止bin/start-all.sh

[1]+ Stopped bin/start-all.sh

我给了当前用户"sreenath"密码

I have given the current user "sreenath" password

推荐答案

您的SSH设置不正确

设置无密码ssh

现在,请检查您是否可以在不使用密码的情况下SSH到本地主机:

Now check that you can ssh to the localhost without a passphrase:

$ ssh localhost

如果没有通行密码就无法SSH到localhost,请执行 以下命令:

If you cannot ssh to localhost without a passphrase, execute the following commands:

$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

执行

格式化新的分布式文件系统:

Format a new distributed-filesystem:

$ bin/hadoop namenode -format

启动hadoop守护程序:

Start The hadoop daemons:

$ bin/start-all.sh

http://hadoop.apache.org/common/docs/r0.17.0/quickstart.html#Setup + passphraseless

请参考 Micheal Noll的链接在您的计算机上运行Hadoop.

Refer Micheal Noll's link for running Hadoop on your machine.

这篇关于使用start-all.sh启动hadoop进程时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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