Good Afternoon,

I'm trying to configure Ambari Version 2.7.5.0 on CentOS 7 and am having some 
issues trying to create a cluster in Ambari, when I get to the install, Start 
and Test phase I get the following errors:

stderr:
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", 
line 38, in <module>
    BeforeAnyHook().execute()
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", 
line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", 
line 31, in hook
    setup_users()
  File 
"/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/shared_initialization.py",
 line 50, in setup_users
    groups = params.user_to_groups_dict[user],
KeyError: u'ambari-qa'
Error: Error: Unable to run the custom hook script ['/usr/bin/python', 
'/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', 
'/var/lib/ambari-agent/data/command-263.json', 
'/var/lib/ambari-agent/cache/stack-hooks/before-ANY', 
'/var/lib/ambari-agent/data/structured-out-263.json', 'INFO', 
'/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']
stdout:

2021-09-27 12:08:38,783 - Stack Feature Version Info: Cluster Stack=1.0, 
Command Stack=None, Command Version=None -> 1.0
2021-09-27 12:08:38,785 - Group['hdfs'] {}
2021-09-27 12:08:38,786 - Group['hadoop'] {}
2021-09-27 12:08:38,787 - Group['users'] {}
2021-09-27 12:08:38,787 - User['zookeeper'] {'gid': 'hadoop', 
'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
Error: Error: Unable to run the custom hook script ['/usr/bin/python', 
'/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', 
'/var/lib/ambari-agent/data/command-263.json', 
'/var/lib/ambari-agent/cache/stack-hooks/before-ANY', 
'/var/lib/ambari-agent/data/structured-out-263.json', 'INFO', 
'/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']

Command failed after 1 tries

Any help would be much appreciated, I'm new to Ambari and can't find any useful 
documentation.

Regards,

Chris


Reply via email to