[ https://issues.apache.org/jira/browse/AMBARI-13401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Fernandez updated AMBARI-13401: ----------------------------------------- Summary: Fail to start services since cannot check/create users (was: Fail to start services) > Fail to start services since cannot check/create users > ------------------------------------------------------ > > Key: AMBARI-13401 > URL: https://issues.apache.org/jira/browse/AMBARI-13401 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.2.0 > Environment: centos6.5 > Reporter: zhangxiaolu > Attachments: Screen Shot 2016-03-22 at 10.26.40 AM.png, Screen Shot > 2016-03-22 at 10.27.23 AM.png > > > Installed Ambari 2.2.0 > HDP 2.3.2.0-2950 > Some services started, but ZKFC, Kafka, Resource Manager, AMS, are no longer > starting. > {code} > 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 218, in execute > method(env) > File > "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", > line 30, in hook > setup_users() > File > "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", > line 76, in setup_users > ignore_failures = params.ignore_groupsusers_create > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", > line 154, in __init__ > self.env.run() > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 152, in run > self.run_action(resource, action) > File > "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", > line 118, in run_action > provider_action() > File > "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py", > line 44, in action_create > if not self.user: > File > "/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py", > line 93, in user > return pwd.getpwnam(self.resource.username) > TypeError: getpwnam() argument 1 must be string, not None > Error: Error: Unable to run the custom hook script ['/usr/bin/python2.6', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', > 'ANY', '/var/lib/ambari-agent/data/command-404.json', > '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', > '/var/lib/ambari-agent/data/structured-out-404.json', 'INFO', > '/var/lib/ambari-agent/data/tmp'] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)