Member since
07-30-2019
453
Posts
112
Kudos Received
80
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2398 | 04-12-2023 08:58 PM | |
| 4970 | 04-04-2023 11:48 PM | |
| 1589 | 04-02-2023 10:24 PM | |
| 3482 | 07-05-2019 08:38 AM | |
| 3400 | 05-13-2019 06:21 AM |
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
08-21-2018
06:37 AM
Hi @Naveen R , IMHO you might need to add some service to the newly host added. can you see by ssh to the host whether the added host has ambari-agent running (ambari-agent status) . additionally the curl command : curl -u admin:admin -H "X-Requested-By:ambari" -i -X GET http://AMBARI_SERVER:8080/api/v1/clusters/asnaik/hosts/NEWLY_ADDED_HOST I would again suggest you add host via Hosts Tab ->Actions -> Add new hosts which is defined and correct way of doing it. or you might need to add service also to the host.
... View more
08-21-2018
06:30 AM
Hi @yadir Aguilar, From the logs Connection to https: //maestro.hdp.com:8440/ca INFO 2018 -08-20 16: 25: 11,874 main.py:449 - Connected to the Ambari server maestro.hdp.com It looks your ambari-agent is trying to connect to maestro.hdp.com and its connected successfully too. can you try to restart ambari-agent once and see if that helps ambari-agent restart don't see any specific error in ambari-agent logs commented in here. look out for ERROR in the log. what you have attached is all warnings and try to attach in code format i am code format Hope this helps you.
... View more
08-21-2018
06:14 AM
1 Kudo
Hi @Naveen R ,
why dont you try it via UI way.
navigate to Hosts Tab ->Actions -> Add new hosts and ADd via UI.
if you are sure you want to do it via REST API. please try the following. it worked for me.
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST http://AMBARI_SERVER:8080/api/v1/bootstrap -d '{"verbose":true,"sshKey":"-----BEGIN RSA PRIVATE KEY-----XX PRIVATE KEY-----END RSA PRIVATE KEY-----","hosts":["mycomapny.com"],"user":"root","sshPort":"22","userRunAs":"root"}'
Request you to mark the answer as accepted by clicking on accept button if this helps you :)
... View more
08-15-2018
05:20 PM
Hi @Lian Jiang, Glad that your issue resolved. changing the hbase temp directory solution is best IMHO .
... View more
08-15-2018
11:31 AM
Hi @Michael Bronson , Yeah exactly thats what i did.
... View more
08-15-2018
09:05 AM
1 Kudo
Hi @Michael Bronson , Adding the below parameters for AMS_COLLECTOR_GC_OPTS in ams-env template and SERVER_GC_OPTS in ams-hbase-env template via ambari -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=4K Helped me. I hope this is your query. you might need to add it in this two places to control collector-gc.log and gc.log Hope this helps. if you find this answer usefull please mark the 'accept' button so that it helps other community users to find the best one.
... View more
08-14-2018
12:21 PM
2 Kudos
Issue Description :
Unable to Register new Version in Ambari-2.6.2.x versions using Redhat Satellite/spacewalk, The Save button is disabled or grayed out
the Javascript logic of validating the URL fails if the Redhat satellite/spacewalk is ticked and save button remains disabled
Root cause : https://issues.apache.org/jira/browse/AMBARI-22952
Solution :
1) Use javascript Workaround
Go to Ambari-Server node,
go to folder(for ambari-2.6.2.2 folder name will be ADMIN_VIEW\{2.6.2.2\} :
cd /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.6.2.0}/scripts
Back up the current main.js
cp main.js /tmp/main.js
vi main.js find the line :
$scope.isSaveButtonDisabled = function() {
Change this functions return type from
return !(enabled && $scope.validBaseUrlsExist());
to
return !($scope.useRedhatSatellite || (enabled && $scope.validBaseUrlsExist()));
Save it and Try again after Hard Reloading the Browser.
There is an another option of adding the same via CURL command , which is the tougher method. i will Explain that method in my next article.
... View more
Labels:
08-14-2018
08:22 AM
1 Kudo
Hi @Pankaj Singh , You need to click on upgrade on process, See each subtask and what is failed. Analyse those subtasks error/output.txt and try to rectify the same. You will have the option to retry each task and you can retry those tasks once you rectify the errors. Mostly by searching this community thread you will be able to find solutions for issues you are facing. Hope this helps. If you cant please post the relevant error logs of subprocess pending. Hope this helps you
... View more
08-14-2018
03:47 AM
Hi @Lian Jiang , Can you give some more details about the issue. Like your operating system, Internal memory are you trying to deploy the HDP3.0 using cloudbreak ? Additionally, this error is at Netty, a third party app used by HDP services to deploy containers . I found something similar here : https://github.com/netty/netty/issues/6678 Seems this is related.
... View more