I ended up downgrading Ambari to an older version to get around it for now. I 
opened a support ticket with Hortonworks, but they have not been helpful in 
recreating or resolving it.



From: Lukáš Drbal [mailto:[email protected]]
Sent: Thursday, September 14, 2017 4:06 PM
To: [email protected]
Subject: Re: Ambari 2.5.2 Cluster Install Error - useradd: UID 1002 is not 
unique

Hi Tom,

we have exactly same problem, i tried to limit min_uid in sssd configuration, 
it look's like a good way but it still doesn't work. Do you have any new 
information?

Thanks!

L.

On Tue, Sep 5, 2017 at 11:21 PM, Stewart Thomas J 
<[email protected]<mailto:[email protected]>> wrote:
Anyone have an idea on how to resolve this error? This is a new HDP 2.6.2 
cluster via Ambari 2.5.2. I think it might have something to do with an 
additional error beyond one of these:
https://issues.apache.org/jira/browse/AMBARI-21531
https://issues.apache.org/jira/browse/AMBARI-21483

I am running on Red Hat 7, with SSSD. The uid in question is not in /etc/passwd 
(local), but it is in our directory server already. I think that is confusing 
the Ambari logic being used to fetch an unused uid…


Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
 line 35, in <module>
    BeforeAnyHook().execute()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 329, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py",
 line 29, in hook
    setup_users()
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py",
 line 51, in setup_users
    fetch_nonlocal_groups = params.fetch_nonlocal_groups,
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
line 166, in __init__
    self.env.run()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 160, in run
    self.run_action(resource, action)
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 124, in run_action
    provider_action()
  File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py",
 line 84, in action_create
    shell.checked_call(command, sudo=True)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 102, in checked_call
    tries=tries, try_sleep=try_sleep, 
timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", 
line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'useradd -m 
-u 1002 -G hadoop -g hadoop zookeeper' returned 4. useradd: UID 1002 is not 
unique
Error: Error: Unable to run the custom hook script ['/usr/bin/python', 
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py',
 'ANY', '/var/lib/ambari-agent/data/command-30.json', 
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', 
'/var/lib/ambari-agent/data/structured-out-30.json', 'INFO', 
'/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']

Thanks,

Tom






--
Save The World - http://www.worldcommunitygrid.org/
http://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=LesTR

LesTR

Reply via email to