Created 04-14-2016 07:18 AM
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.
Created 04-14-2016 08:25 AM
1. First you need to make sure, that your none root user has sufficient sudoers rights. Please check this docuement:
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:
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
Created 04-14-2016 08:25 AM
1. First you need to make sure, that your none root user has sufficient sudoers rights. Please check this docuement:
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:
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
Created 04-18-2016 03:47 AM
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 .
Created 04-15-2016 06:58 AM
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!
Created 04-18-2016 03:47 AM
@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 .
Created 04-18-2016 06:06 PM
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):