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

[jira] [Updated] (AMBARI-13401) add new service

     [ https://issues.apache.org/jira/browse/AMBARI-13401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

juntaozhang updated AMBARI-13401:
---------------------------------
    Affects Version/s: 2.2.0
          Environment: centos6.5
          Component/s: ambari-agent

any command push to agents will cause this exception

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 219, 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 41, in setup_users
    groups = params.user_to_groups_dict[user],
  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 158, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, 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', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-3305.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-3305.json', 'INFO', '/var/lib/ambari-agent/tmp']
stdout:   /var/lib/ambari-agent/data/output-3305.txt

2016-03-21 15:05:40,473 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.2.0-2950
2016-03-21 15:05:40,473 - Checking if need to create versioned conf dir /etc/hadoop/2.3.2.0-2950/0
2016-03-21 15:05:40,474 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.2.0-2950 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-03-21 15:05:40,508 - call returned (1, '/etc/hadoop/2.3.2.0-2950/0 exist already', '')
2016-03-21 15:05:40,509 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.2.0-2950 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-03-21 15:05:40,544 - checked_call returned (0, '/usr/hdp/2.3.2.0-2950/hadoop/conf -> /etc/hadoop/2.3.2.0-2950/0')
2016-03-21 15:05:40,544 - Ensuring that hadoop has the correct symlink structure
2016-03-21 15:05:40,544 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2016-03-21 15:05:40,724 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.2.0-2950
2016-03-21 15:05:40,724 - Checking if need to create versioned conf dir /etc/hadoop/2.3.2.0-2950/0
2016-03-21 15:05:40,725 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.2.0-2950 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-03-21 15:05:40,758 - call returned (1, '/etc/hadoop/2.3.2.0-2950/0 exist already', '')
2016-03-21 15:05:40,759 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.2.0-2950 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-03-21 15:05:40,793 - checked_call returned (0, '/usr/hdp/2.3.2.0-2950/hadoop/conf -> /etc/hadoop/2.3.2.0-2950/0')
2016-03-21 15:05:40,793 - Ensuring that hadoop has the correct symlink structure
2016-03-21 15:05:40,793 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2016-03-21 15:05:40,796 - Group['spark'] {}
2016-03-21 15:05:40,805 - Group['hadoop'] {}
2016-03-21 15:05:40,805 - Group['users'] {}
2016-03-21 15:05:40,806 - User[None] {'gid': 'hadoop', 'groups': ['hadoop']}
Error: Error: Unable to run the custom hook script ['/usr/bin/python2', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-3305.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-3305.json', 'INFO', '/var/lib/ambari-agent/tmp']

> add new service 
> ----------------
>
>                 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
>
> 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']



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)