ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang juntao <>
Subject TypeError: getpwnam() argument 1 must be string, not None
Date Mon, 21 Mar 2016 06:31:44 GMT
hi all,
I have been using ambari to manage our cluster of hadoop, now i met a problem that i can’t
push command to agents , there always some exception like:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/", line
35, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 219, in execute
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/", line
29, in hook
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/",
line 41, in setup_users
    groups = params.user_to_groups_dict[user],
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 154, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 158,
in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 121,
in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/",
line 44, in action_create
    if not self.user:
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/",
line 94, 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/',
'ANY', '/var/lib/ambari-agent/data/command-3281.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY',
'/var/lib/ambari-agent/data/structured-out-3281.json', 'INFO', '/var/lib/ambari-agent/tmp']
i find there is a jira bug ( <>)
Is this a bug of ambari? how can I fix this issue?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message