Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Non-root user fail to deploy hadoop with Ambari 2.2.1 on CentOS 7

avatar
New Member

I try to deploy hadoop with non-root user through Ambari. I have already setup Ambari server successfully and deploying hadoop on Ambari web interface.On step 'Install Options', if I set the SSH User Account with ROOT,then I can go to the next step,but when I replace with my non-root user, then waiting for quite a time and finally shows the status 'Failed' message as below:

========================== Creating target directory... ========================== Command start time 2016-04-14 14:44:13 Automatic Agent registration timed out (timeout = 300 seconds). Check your network connectivity and retry registration, or use manual agent registration.

I have already set SSH free password login on root and non-root users and other essential configuration as well.Besides, I can pass the step 'Install Options' with root. Thus ,I'm quite sure that Non-root user fail the step because of lacking authority but don't know how to fix it.

Anyone has some suggestions?

Thanks.

1 ACCEPTED SOLUTION

avatar
Super Collaborator

1. First you need to make sure, that your none root user has sufficient sudoers rights. Please check this docuement:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_Ambari_Security_Guide/content/_configurin...

2. Next I suspect you setup password less SSH for the root user not the none-root user? I always prefer manual agent registration, but that is just me. Please check:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_reference_guide/content/_install_t...

A simple sed helps to do the manual registration:

$ sed -i 's/hostname=localhost/hostname=<ambari_server_fqdn>/' /etc/ambari-agent/conf/ambari-agent.ini

View solution in original post

5 REPLIES 5

avatar
Super Collaborator

1. First you need to make sure, that your none root user has sufficient sudoers rights. Please check this docuement:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_Ambari_Security_Guide/content/_configurin...

2. Next I suspect you setup password less SSH for the root user not the none-root user? I always prefer manual agent registration, but that is just me. Please check:

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_reference_guide/content/_install_t...

A simple sed helps to do the manual registration:

$ sed -i 's/hostname=localhost/hostname=<ambari_server_fqdn>/' /etc/ambari-agent/conf/ambari-agent.ini

avatar
New Member

Thank you for your help ! Your first suggestion is helpful indeed, and I pass the step 'Install Options' finally after try several times installations. Next time I will try to manual agent registration for more flexible installation ways .

avatar
Explorer

With this error, I think you should execute some step below:

1. To secure, you should use to ssh authen with key from ambari server to all nodes with non-root user.

2. For non-root user has sufficient sudoers rights.

I hope it is helped to you!

avatar
New Member

@hkropp

Thank you for your help ! Your first suggestion is helpful indeed, and I pass the step 'Install Options' finally after try several times installations. Next time I will try to manual agent registration for more flexible installation ways .

avatar
Guru

Also, since you are on CentOS7, just pointing out one more thing (that you might/might not hit once you get into the cluster install):

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_troubleshooting/content/_resolving...