Hadoop 2.6.0-运行启动脚本时询问用户密码? [英] Hadoop 2.6.0 - Asking password for the user while running the start up script?
问题描述
我已经在ubuntu linux上以伪分布式模式安装了hadoop 2.6.0.除了这个问题,一切都很好.当我运行start-dfs.sh脚本启动守护程序时,它要求输入Linux用户密码.不知道为什么吗?它要求每个守护程序(名称节点,数据节点和秒名称节点)输入密码.您能帮忙解决这个问题吗?
I've installed hadoop 2.6.0 in ubuntu linux on a pseudo distributed mode. Everything is fine except this issue. When I run the start-dfs.sh script to start daemons it's asking for the linux user password. Not sure why? It's asking for the password for every daemon (namenode, datanode & sec namenode). Could you please help to address this issue?
huser@ubuntu:~/hadoop$ sbin/start-dfs.sh
Starting namenodes on [localhost]
huser@localhost's password:
谢谢.
推荐答案
如果未为huser @ localhost设置passwordless ssh
,则会发生这种情况. getenfor
This happens if you did not setup passwordless ssh
for huser@localhost. getenfor
如果您设置了passwordless ssh
,请确保使用$sestatus
命令禁用了selinux
.
If you did setup passwordless ssh
make sure selinux
is disabled by using $sestatus
command.
注意:您应该以sudo
用户身份运行sestatus
.
Note: You should run sestatus
as a sudo
user.
这篇关于Hadoop 2.6.0-运行启动脚本时询问用户密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!