Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2001 | 06-15-2020 05:23 AM | |
| 16486 | 01-30-2020 08:04 PM | |
| 2149 | 07-07-2019 09:06 PM | |
| 8355 | 01-27-2018 10:17 PM | |
| 4740 | 12-31-2017 10:12 PM |
04-11-2018
08:58 AM
@Jay chould you help me please with this quastion - https://community.hortonworks.com/questions/185891/check-ambari-metrics-service-check.html
... View more
04-11-2018
10:05 AM
@Michael Bronson Yes, Ambari UI --> Ambari Metrics --> Service Actions --> Restart All Metrics service will cause Ambari Metrics Monitor/ Grafana & Metrics Collector restart.
... View more
04-08-2018
02:46 PM
@Michael Bronson, I do not see any error logs in the logs pasted. I see only warnings. Is something failing because of this.?
... View more
04-03-2018
07:46 AM
@Michael Bronson Yes, I think the steps are correct, but I think for better understanding you add a step between 2 and 3 :-). Mounting the new FS and updating the fstab before copying across the data from the old mount point. Cheers 🙂
... View more
03-28-2018
08:11 PM
@Michael Bronson You will need first to identify the Ambari Service and Component name to be used in the API, this for sure will also bring down the Metrics collector curl -u admin:admin get http://<AMBARI_SERVER>:8080/api/v1/clusters/<CLUSTER_NAME>/services Replace the particular service below <Service_name> with the previous output eg AMBARI_METRICS Stop AMBARI_METRICS curl -u admin:admin -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop service "}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://<AMBARI_SERVER_HOSTNAME>:8080/api/v1/clusters/<CLUSTER_NAME>/services/<Service_name>; The service will stop check the Ambari UI Hope that helps!!
... View more
03-27-2018
04:24 PM
1 Kudo
@Michael Bronson, This is the curl call for start curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo":{"context":"_PARSE_.START.AMBARI_METRICS","operation_level":{"level":"SERVICE","cluster_name":"hdp","service_name":"AMBARI_METRICS"}},"Body":{"ServiceInfo":{"state":"STARTED"}}}' http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS
... View more
03-27-2018
02:19 PM
@Michael Bronson Try commenting the below line in configs.py 118 #output_to_file(new_file)(new_config) I did a basic validation and it works. PUT option alone creates output file by default and GET has a flag -f. We are basically commenting the PUT operations output file.
... View more
03-25-2018
11:57 AM
yes seems you are right we already installe more then 30 clusters without problem and without Underscore
... View more
03-21-2018
07:23 PM
Yes, you can - the above calls can capture it on a host/component basis.
... View more
03-20-2018
10:05 AM
1 Kudo
@Michael Bronson Something like this you can try: # curl -u admin:admin -H 'X-Requested-By: ambari' -X GET "http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster?fields=hosts/Hosts/host_name,hosts/Hosts/host_state" | grep -B1 host_state
. OR # curl -u admin:admin -H 'X-Requested-By: ambari' -X GET "http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster?fields=hosts/Hosts/host_name,hosts/Hosts/host_state" | grep -B1 HEARTBEAT_LOST
OUTPUT
-------
"host_name" : "hdfcluster4.example.com",
"host_state" : "HEARTBEAT_LOST" . For healthy nodes we can grep like: # curl -u admin:admin -H 'X-Requested-By: ambari' -X GET "http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster?fields=hosts/Hosts/host_name,hosts/Hosts/host_state" | grep -B1 HEALTHY
OUTPUT
-------
"host_name" : "hdfcluster1.example.com",
"host_state" : "HEALTHY"
--
"host_name" : "hdfcluster2.example.com",
"host_state" : "HEALTHY"
--
"host_name" : "hdfcluster3.example.com",
"host_state" : "HEALTHY"
.
... View more