Do you think this will fix for issues. This patch is currently in trunk. https://issues.apache.org/jira/browse/AMBARI-21634
-- *With Regards,* *Aman Poonia* On Mon, Sep 18, 2017 at 11:34 PM, Stewart Thomas J < [email protected]> wrote: > That is more of a hack workaround than a fix, but if it works for you, > that is good. In an enterprise where you might have thousands of Unix ID’s > in your LDAP server, you could hit conflicts anywhere within the range of > valid uids. The real fix would be via Ambari code in how it searches for > free uids. > > > > > > > > *From:* Lukáš Drbal [mailto:[email protected]] > *Sent:* Friday, September 15, 2017 10:14 AM > > *To:* [email protected] > *Subject:* Re: Ambari 2.5.2 Cluster Install Error - useradd: UID 1002 is > not unique > > > > Hi, > > > > i just check it again and find an fix. > > > > Changes is in sssd.conf: > > > > Added: > > min_id = 2000 > > ldap_user_search_filter = (gidNumber>=2000) > > > > in section for ldap provider. > > > > L. > > > > On Fri, Sep 15, 2017 at 12:50 AM, Stewart Thomas J < > [email protected]> wrote: > > 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]> 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 > > > > > > -- > > Save The World - http://www.worldcommunitygrid.org/ > http://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=LesTR > > LesTR >
