Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 10-07-2016 11:07 AM
Hi community,
it seems like the docs are incorrect in regard to non-root configuration for Ambari:
sudo-rights for "/usr/bin/ambari-python-wrap" are missing.
I am running HDP 2.5.0 and Ambari 2.4.0.1 on RHEL 6.7
Otherwise my Ambari prompts:
resource_management.core.exceptions.Fail: Execution of 'ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.5.0.0-1245 --conf-version 0' returned 1. Sorry, user ambari is not allowed to execute '/usr/bin/ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.5.0.0-1245 --conf-version 0' as root on fsdebsup0053.d-fs01.d-vwf.d-vwfs-ad. Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', 'START', '/var/lib/ambari-agent/data/command-3158.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', '/var/lib/ambari-agent/data/structured-out-3158.json', 'INFO', '/var/lib/ambari-agent/tmp']
Created 10-07-2016 06:17 PM
Docs fixed, at:
http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-security/content/commands_agent.ht... http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-security/content/commands_agent.ht... http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.0/bk_ambari-security/content/commands_agent.ht... and
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/_commands.html
Created 10-07-2016 05:06 PM
@Roland Simonis
Please try to install using root or add your user in sudoers list.
Add /etc/sudoers
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
Created 10-07-2016 05:31 PM
This will work but is definately not the solution!
The documentation does list all required rights, so that I am not required to give some ambari user all rights: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-security/content/configuring_amba...
However the list is incorrect as mentioned in the inital post.
Created 10-07-2016 05:43 PM
When you are getting following error? Will you describe please
Created 10-07-2016 06:17 PM
Docs fixed, at:
http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-security/content/commands_agent.ht... http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-security/content/commands_agent.ht... http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.0/bk_ambari-security/content/commands_agent.ht... and
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_security/content/_commands.html
Created 10-10-2016 01:50 PM
Thank you!
Created 10-11-2016 07:42 PM
Adding more components to the cluster, more missing sudo-commands were detected. Currently, the cluster is up with this additional block of in the sudoers config:
ambari ALL=(ALL) NOPASSWD:SETENV: /usr/bin/ambari-python-wrap, /usr/sbin/ambari-metrics-grafana, /usr/bin/java, /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
Could you guys please confirm the really required sudo-config. We do not want to hotfix the config over and over until everything works fine...