Member since
05-28-2018
6
Posts
0
Kudos Received
0
Solutions
12-27-2018
02:11 AM
Hey @Henry Luo , As i specified earlier, we need to fetch the version_xml from repo_version table, modify it and update the table. you can use any of UI tools like PGADMIN4(if postgres UI) or can update the same using the command I mentioned above. If you are not fully aware of Database operations you can ignore these wrong versions change as I explained above why its happening. Hope this helps.Please accept answer if it did.
... View more
08-21-2018
10:26 AM
1 Kudo
Hi @Henry Luo, I see as per the code : https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/shared_initialization.py You script is failing at "Creates users before cluster installation" step . I would suggest you skip creating group users via the below REST API : You can refer to this document to perform it via rest API : https://community.hortonworks.com/articles/63557/how-to-edit-the-cluster-envxml-entries-using-ambar.html or else can perform the same via :
[root@asnaik1 scripts]# pwd /var/lib/ambari-server/resources/scripts
[root@asnaik1 scripts]# python configs.py -u admin -p admin -n asnaik -l asnaik1.openstacklocal -t 8080 -a get -c cluster-env |grep -i ignore_groupsusers_create
"ignore_groupsusers_create": "false",
[root@asnaik1 scripts]# python configs.py -u admin -p admin -n asnaik -l asnaik1.openstacklocal -t 8080 -a set -c cluster-env -k ignore_groupsusers_create -v true
2018-08-09 04:12:14,914 INFO ### Performing "set":
2018-08-09 04:12:14,914 INFO ### new property - "ignore_groupsusers_create":"true"
2018-08-09 04:12:14,940 INFO ### on (Site:cluster-env, Tag:version1527268503510)
2018-08-09 04:12:14,953 INFO ### PUTting json into: doSet_version1533787934953155.json
2018-08-09 04:12:15,059 INFO ### NEW Site:cluster-env, Tag:version1533787934953155
[root@asnaik1 scripts]# python configs.py -u admin -p admin -n asnaik -l asnaik1.openstacklocal -t 8080 -a get -c cluster-env |grep -i ignore_groupsusers_create
"ignore_groupsusers_create": "true",
you can get the help from
[root@asnaik1 scripts]# python configs.py --help
and retry the operation. this time ambari wont be creating a elasticsearch user. Hope this helps. Please accept the answer if this helped you.
... View more