启动hadoop时报root@localhost's password: localhost: Permission denied, please try again.错误。


背景:在装完hadoop及jdk之后,在执行start-all.sh的时候出现
root@localhost's password:localhost:permission denied,please try again。

解决方案:

1.修改root密码:#sudo passwd root

2.辑配置文件,允许以 root 用户通过 ssh 登录:sudo vi /etc/ssh/sshd_config

 找到:PermitRootLogin prohibit-password禁用

   添加:PermitRootLogin yes

3.sudo service ssh restart

重新启动成功。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM