我正在使用低于主机名的ubuntu本地机器,并试图安装clouderahadoop发行版cdh5。
chaithu@localhost:~$ hostname
localhost
chaithu@localhost:~$ hostname -f
localhost
chaithu@localhost:~$ ssh chaithu@localhost
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.8.0-36-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
449 packages can be updated.
232 updates are security updates.
Last login: Mon Dec 18 22:44:30 2017 from 127.0.0.1
失败,因为检测根权限失败,错误如下:
/tmp/scm_prepare_node.qkAAjdTz
using SSH_CLIENT to get the SCM hostname: 127.0.0.1 35708 22
opening logging file descriptor
Starting installation script...
Acquiring installation lock...
BEGIN flock 4
END (0)
Detecting root privileges...
effective UID is 1000
BEGIN which pbrun
END (1)
BEGIN sudo -S id
[sudo] password for chaithu:
END (1)
need root privileges but sudo requires password, exiting
closing logging file descriptor
屏幕截图,我与cdh安装卡住。
1条答案
按热度按时间rqenqsqc1#
看起来您缺少用于安装的用户的sudo或无密码sudo。
为用于设置的用户配置sudo。
确保为该用户配置了无密码sudo。