Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1911 | 06-15-2020 05:23 AM | |
| 15419 | 01-30-2020 08:04 PM | |
| 2047 | 07-07-2019 09:06 PM | |
| 8091 | 01-27-2018 10:17 PM | |
| 4555 | 12-31-2017 10:12 PM |
08-29-2017
10:14 AM
generic question , do we need to do restart after each parameter settings ? or we can do after we set all parameters?
... View more
08-30-2017
06:18 AM
1 Kudo
you can restart after you set all parameters. but might be difficult to troubleshoot if some of the services fail to start.
... View more
08-29-2017
05:29 AM
@uri ben-ari To list all the requests use the following API and see what is the maximum request ID (which will be the recent one, Higher the requestID more recent one it is): # curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/clusters/Sandbox/requests?fields=Requests/request_status | grep -A 1 id | awk '{print $NF}' > /tmp/requests_details.txt; sed -e '1,2d' -e s'/--//g' -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/requests_details.txt | awk 'NR%2{printf "%s ",$0;next;}1' Example Output: 185, COMPLETED
186, COMPLETED
187, COMPLETED
188, FAILED
189, COMPLETED
190, COMPLETED
191, COMPLETED
193, COMPLETED
195, COMPLETED
196, COMPLETED
197, COMPLETED
198, COMPLETED
199, COMPLETED
200, COMPLETED
201, COMPLETED
202, COMPLETED
203, COMPLETED
204, COMPLETED
206, ABORTED . . Then if you want to see only the IN_PROGRESS requests then you can make the following API call. # curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/clusters/Sandbox/requests?fields=Requests/request_status | grep -A 1 id | awk '{print $NF}' > /tmp/requests_details.txt; sed -e '1,2d' -e s'/--//g' -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/requests_details.txt | awk 'NR%2{printf "%s ",$0;next;}1' | grep -i 'IN_PROGRESS' Example Output: # curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/clusters/Sandbox/requests?fields=Requests/request_status | grep -A 1 id | awk '{print $NF}' > /tmp/requests_details.txt; sed -e '1,2d' -e s'/--//g' -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/requests_details.txt | awk 'NR%2{printf "%s ",$0;next;}1' | grep -i 'IN_PROGRESS'
207, IN_PROGRESS
.
... View more
08-28-2017
06:08 AM
@uri ben-ari Please try something like following: # curl -sH "X-Requested-By: ambari" -u admin:admin -i http://localhost:8080/api/v1/hosts?fields=Hosts/host_name,Hosts/ip | grep -A 1 host_name | awk '{print $NF}' > /tmp/hosts_details.txt; sed -e '1,2d' -e s'/--//g' -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/hosts_details.txt | awk 'NR%2{printf "%s ",$0;next;}1 . Example Output: # curl -sH "X-Requested-By: ambari" -u admin:admin -i http://amb25101.example.com:8080/api/v1/hosts?fields=Hosts/host_name,Hosts/ip | grep -A 1 host_name | awk '{print $NF}' > /tmp/hosts_details.txt; sed -e '1,2d' -e s'/--//g' -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/hosts_details.txt | awk 'NR%2{printf "%s ",$0;next;}1'
amb25101.example.com 172.10.116.149
amb25102.example.com 172.10.116.148
amb25103.example.com 172.10.116.151
amb25104.example.com 172.10.116.150 .
... View more
08-27-2017
11:09 AM
@uri ben-ari Following should list all the components that has stale config, and need to be restaretd to get the config changes reflected. # curl -i --user admin:admin -i -H 'X-Requested-By: ambari' -X GET http://localhost:8080/api/v1/clusters/Sandbox/host_components?HostRoles/stale_configs=true
Here please replace the following: 1. "localhost" : with the Ambari FQDN 2. 8080 : with ambari port. 3. Sandbox : With cluster Name .
... View more
08-23-2017
05:03 AM
@uri ben-ari The error indicates that you are not passing the correct "zookeeper.connect" property value to the flag "--zookeeper" in the command line. You can get the "zookeeper.connect" value from Ambari UI --> Kafka --> Configs --> Kafka Broker --> "zookeeper.connect" In my case the value was : "amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181" So i had to use the following command: Example: # /usr/hdp/2.6.0.3-8/kafka/bin/kafka-preferred-replica-election.sh --zookeeper amb25103.example.com:2181,amb25102.example.com:2181,amb25101.example.com:2181 .
... View more
08-22-2017
06:53 PM
You can get the JSON response.
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/hosts.md
http://ambari-server:8080/clusters/:clusterName/hosts
To extract the hostnames easier, you could try JSONPath
$.items[*].Hosts.host_name
Or Python with Requests library r = requests.get('...')
hosts = ','.join(x['Hosts']['host_name'] for x in r.json()['items'])
... View more
08-20-2017
09:44 AM
@uri ben-ari Just updated the other thread.
... View more
08-20-2017
06:35 PM
Jay - some of our ambari clusters are old ( they installed before 6-8 month ) , so what is the best approach to alignments the old ambari system ( I mean the parameters with the values ) so they will have the full parameters as our current ambari clusters ?
... View more
08-18-2017
11:06 AM
now I see the req ID , all is right now
... View more