Member since
11-09-2018
4
Posts
0
Kudos Received
0
Solutions
11-14-2018
05:37 AM
Hi...Jay Thanks for the advice I missed this piece while updating the sudoers https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-security/content/sudo_defaults_agent.html
... View more
11-13-2018
08:31 PM
Hi... I have configured ambari agent with non root user hadoop. I am trying to start ambari metrics collector. but it keeps failing with the error below. ExecutionFailed: Execution of '/usr/sbin/ambari-metrics-monitor --config /etc/ambari-metrics-monitor/conf start' returned 1. sudo: no tty present and no askpass program specified Also I have updated the sudoers file with the below lines # Ambari metrics commands ams ALL=(ALL) NOPASSWD:SETENV: /usr/sbin/ambari-metrics-monitor *, /usr/sbin/ambari-metrics-collector * hadoop ALL=(ALL) NOPASSWD:SETENV: /usr/sbin/ambari-metrics-monitor *, /usr/sbin/ambari-metrics-collector * Still is does not work any idea which user ambari is using to start the services ?
... View more
Labels:
- Labels:
-
Apache Ambari
11-12-2018
02:03 PM
Hi...Geoffrey Thanks for the response. I was choosing automatic host registration on the UI. I changed it to manual and it worked.
... View more
11-09-2018
12:44 PM
Hi... I have installed and setup ambari as a root user. Then I created a non root user hadoop and gave full sudo priveleges. I have setup ssh passwordless authentication on both my hosts is working fine. When I am running the launch wizard its failing. at confirm hosts with the below error message. Please advise what to do. I also saw the topic of installing ambari agents as non root user. I tried the Error Below INFO:root:BootStrapping hosts ['analyticslab74.in.ibm.com', 'analyticslab75.in.ibm.com'] using /usr/lib/ambari-server/lib/ambari_server cluster primary OS: redhat7 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/4/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/4 ambari: analyticslab74.in.ibm.com; server_port: 8080; ambari version: 2.6.2.0; user_run_as: root INFO:root:Executing parallel bootstrap ERROR:root:ERROR: Bootstrap of host analyticslab75.in.ibm.com fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
... View more
Labels: