Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Getting error while installing Yarn+Mapreduce2 timeline server


@Artem Ervits @Jay Kumar SenSharma @Geoffrey Shelton Okot


Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/", line 35, in BeforeAnyHook().execute() File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 353, in execute method(env) File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/", line 29, in hook setup_users() File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/", line 51, in setup_users fetch_nonlocal_groups = params.fetch_nonlocal_groups, File "/usr/lib/ambari-agent/lib/resource_management/core/", line 166, in __init__ File "/usr/lib/ambari-agent/lib/resource_management/core/", line 160, in run self.run_action(resource, action) File "/usr/lib/ambari-agent/lib/resource_management/core/", line 124, in run_action provider_action() File "/usr/lib/ambari-agent/lib/resource_management/core/providers/", line 90, in action_create shell.checked_call(command, sudo=True) File "/usr/lib/ambari-agent/lib/resource_management/core/", line 72, in inner result = function(command, **kwargs) File "/usr/lib/ambari-agent/lib/resource_management/core/", line 102, in checked_call tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns) File "/usr/lib/ambari-agent/lib/resource_management/core/", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/ambari-agent/lib/resource_management/core/", line 314, in _call raise ExecutionFailed(err_msg, code, out, err) resource_management.core.exceptions.ExecutionFailed: Execution of 'useradd -m -G hadoop -g hadoop yarn-ats' returned 1. useradd: existing lock file /etc/passwd.lock without a PID useradd: cannot lock /etc/passwd; try again later. Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/', 'ANY', '/var/lib/ambari-agent/data/command-198.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-198.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', ''] stdout: 2018-08-01 10:49:04,734 - Stack Feature Version Info: Cluster Stack=3.0, Command Stack=None, Command Version=None -> 3.0 2018-08-01 10:49:04,760 - Using hadoop conf dir: /usr/hdp/ 2018-08-01 10:49:04,762 - Group['hdfs'] {} 2018-08-01 10:49:04,764 - Group['hadoop'] {} 2018-08-01 10:49:04,765 - Group['users'] {} 2018-08-01 10:49:04,765 - User['yarn-ats'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None} 2018-08-01 10:49:04,766 - Adding user User['yarn-ats'] Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/', 'ANY', '/var/lib/ambari-agent/data/command-198.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-198.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', ''] 2018-08-01 10:49:04,811 - The repository with version for this command has been marked as resolved. It will be used to report the version of the component which was installed

Command failed after 1 tries


@Lokesh Mukku

Can you rename the /etc/passwd.lock file and attempt the installation again?


Thanks a lot

@amarnath reddy pappuI search *.lock files in /etc but did not find any file with name of .lock. Please help me

@Lokesh Mukku are you checking this in host where "Yarn+Mapreduce" is being installed?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.