我试图将新主机添加到集群o CentOS中。它在安装时失败&在状态中给出“安装失败。未能检测根权限”。我知道Cloudera需要用户拥有无密码特权(“安装Cloudera包需要对主机的根访问权限。此安装程序将通过SSH连接到您的主机,并以root用户的身份直接登录或以无密码的sudo/pbrun权限登录成为root用户。”)我怎样才能做到这一点?我试图编辑/etc/sudoers文件。编辑:在sudoers文件中,我添加了一行:
cdh ALL=( ALL ):ALL #cdh是我的用户名
就在定义'root‘的权限的下面。
但是在安装上没有任何成功。在“详细信息”窗口中,写着:
Detecting root privileges...
effective UID is 502
BEGIN which pbrun
END (1)
BEGIN sudo -S id
[sudo] password for cdh:
Sorry, try again.
[sudo] password for cdh:
Sorry, try again.
[sudo] password for cdh:
Sorry, try again.
sudo: 3 incorrect password attempts
END (1)
need root privileges but sudo requires password, exiting
closing logging file descriptor.任何形式的帮助都将受到高度赞赏。
发布于 2015-01-29 07:21:26
您需要没有密码的根权限,所以您的/etc/sudoers行将如下所示,
cloudera ALL =(ALL) NOPASSWD: ALL发布于 2018-09-15 11:04:30
在Ubuntu上对我有用的是:
编辑/etc/sudoers
加一行:
userid ALL=(ALL:ALL) NOPASSWD: ALL与不同,使用sudo特权放置用户名,用于安装Cloudera。
在安装之前的步骤中,添加主机时,请确保输入了用户名和密码。
发布于 2020-06-03 07:51:41
在/etc/sudoers中取消注释这一行
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALLhttps://stackoverflow.com/questions/28171755
复制相似问题