Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudera installation failed to detect root privileges on CentOS

I tried to adding new host into the cluster o CentOS. It fails on install & gives "Installation failed. Failed to detect root privileges" in status. I know that Cloudera needs user to have passwordless privileges ("Root access to your hosts is required to install the Cloudera packages. This installer will connect to your hosts via SSH and log in either directly as root or as another user with password-less sudo/pbrun privileges to become root."). How can I achieve that? I tried to edit the /etc/sudoers file. EDIT: in sudoers file, I added the line:

cdh ALL=(ALL): ALL #cdh is my username

just under where permissions for 'root' is defined.

but with no more success at the install. In the Details window, it says:

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.

Any sort of help will be highly appreciated.

like image 872
codechefvaibhavkashyap Avatar asked Jan 27 '15 13:01

codechefvaibhavkashyap


1 Answers

You need root privileges without password , so your /etc/sudoers line will look something like this,

cloudera ALL =(ALL) NOPASSWD: ALL
like image 134
rpwr021 Avatar answered Sep 30 '22 07:09

rpwr021