运行start-dfs.sh时出现权限被拒绝的错误 [英] Permission Denied error while running start-dfs.sh
问题描述
我在执行 start-dfs.sh
Starting namenodes on [localhost]
pdsh@Gaurav: localhost: rcmd: socket: Permission denied
Starting datanodes
pdsh@Gaurav: localhost: rcmd: socket: Permission denied
Starting secondary namenodes [Gaurav]
pdsh@Gaurav: Gaurav: rcmd: socket: Permission denied 2017-03-13 09:39:29,559
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
使用hadoop 3.0 alpha 2版本.
Using hadoop 3.0 alpha 2 version.
感谢您的帮助
推荐答案
我也遇到了同样的事情,我也是我发现我的pdsh默认rcmd是rsh,不是ssh,rsh和ssh远程登录身份验证是不相同的,在安装hadoop时,我配置了ssh localhost无密码登录,但是rsh是不可能的.
I also encountered the same thing, I did so I found that my pdsh default rcmd is rsh, not ssh, rsh and ssh remote login authentication is not the same, when installing hadoop I configured ssh localhost password-free login, but rsh is not possible.
所以,尝试:
1.检查您的pdsh默认rcmd rsh
1.check your pdsh default rcmd rsh
pdsh -q -w localhost
查看您的pdsh默认rcmd是什么.
See what your pdsh default rcmd is.
2.将pdsh的默认rcmd修改为ssh
2.Modify pdsh's default rcmd to ssh
export PDSH_RCMD_TYPE=ssh
您可以添加到〜/.bashrc和 source〜/.bashrc
you can be added to ~/.bashrc, and source ~/.bashrc
3. sbin/start-dfs.sh
这篇关于运行start-dfs.sh时出现权限被拒绝的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!