Troubleshooting HDP-3.1 + Ambari-2.7.5 Cluster 'Add/Install Service' Failure: Tips and Solutions

Error During Cluster Add Services Operation? Try This Solution

If you encounter the following error message during a cluster add services operation:

resource_management.core.exceptions.ExecutionFailed: Execution of 'usermod -G ranger,hadoop,hadoop,ranger -g hadoop ranger' returned 6. usermod: user 'ranger' does not exist in /etc/passwd Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-1328.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-1328.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']

There's a solution you can try:

  1. Check that the current values are set to "true" by running the following command:

/var/lib/ambari-server/resources/scripts/configs.py -l c149-node1.coelab.cloudera.com --protocol http -t 8080 -u admin -p 'rraman' -a get -n c149 -c cluster-env | egrep 'ignore_groupsusers_create|fetch_nonlocal_groups'

  1. If the values are not set to "true," you can set them by running the following commands:

/var/lib/ambari-server/resources/scripts/configs.py -l c149-node1.coelab.cloudera.com --protocol http -t 8080 -u admin -p 'rraman' -a set -n c149 -c cluster-env -k fetch_nonlocal_groups -v true /var/lib/ambari-server/resources/scripts/configs.py -l c149-node1.coelab.cloudera.com --protocol http -t 8080 -u admin -p 'rraman' -a set -n c149 -c cluster-env -k ignore_groupsusers_create -v true

  1. Finally, repeat step 1 to check that the values have been updated.

No comments:

Post a Comment

Boost Your Download Speed with lftp Segmentation

Looking for a faster way to download files via sftp to a Linux machine? Try using "lftp" instead. This tool offers segmented downl...

Other relevant topics