Interesting.
There is a bug while install HDP 3.X and higher using Ambari.

fix it as below:

python /var/lib/ambari-server/resources/scripts/configs.py -u admin -p admin -n 
[CLUSTER_NAME] -l [CLUSTER_FQDN] -t 8080 -a set -c cluster-env -k 
ignore_groupsusers_create -v true

**** be sure to get the correct [CLUSTER_NAME], [CLUSTER_FQDN], and admin user 
and password for command above


    On Wednesday, 29 September, 2021, 04:15:02 pm GMT+10, [email protected] 
<[email protected]> wrote:  
 
 
Hi,
 
  
 
Currently we do not have LDAP/AD configured and are letting Ambari create the 
users as needed.
 
  
 
Cheers,
 
  
 
Chris
 
  
 
From: gurmukh singh [mailto:[email protected]]
Sent: 28 September 2021 02:20
To: [email protected]
Subject: Re: Problems creating Ambari cluster
 
  
 
|  | 
You don't often get email [email protected]. Learn why this is 
important
  |  |


How are the users fetched on the nodes? are you using ldap/ad or letting ambari 
create al lthe users needed?
 
  
 
On Monday, 27 September, 2021, 09:44:42 pm GMT+10,[email protected] 
<[email protected]> wrote:
 
  
 
  
 
Good Afternoon,
 
 
 
I’m trying to configure Ambari Version 2.7.5.0 on CentOS 7and amhaving 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