You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Alejandro Fernandez (JIRA)" <ji...@apache.org> on 2016/03/22 18:36:25 UTC

[jira] [Comment Edited] (AMBARI-13401) Fail to start services since cannot check/create users

    [ https://issues.apache.org/jira/browse/AMBARI-13401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206842#comment-15206842 ] 

Alejandro Fernandez edited comment on AMBARI-13401 at 3/22/16 5:35 PM:
-----------------------------------------------------------------------

[~juntaozhang], on the hosts where it's failing, can you include the following,
rpm -qa | grep ambari
user that is running ambari-agent process

cc [~aonishuk] since it may be related to https://github.com/apache/ambari/commit/3761bda7cb54e7cfe90e0046f99345337f55c6d1


was (Author: afernandez):
[~juntaozhang], on the hosts where it's failing, can you include the following,
rpm -qa | grep ambari
user that is running ambari-agent process

> 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)