Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Rising Star

To remove a already installed Grafana, following needs to be done:

1. Stop the AMS service from Ambari UI.

2. Execute following curl API commands to delete Grafana:

# curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop HDFS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://<strong><ambari-server-hostname></strong>:8080/api/v1/clusters/<strong><CLUSTERNAME></strong>...

# curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop HDFS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://<strong><ambari-server-hostname></strong>:8080/api/v1/clusters/<strong><CLUSTERNAME></strong>...

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://<strong><ambari-server-hostname></strong>:8080/api/v1/clusters/<strong><CLUSTERNAME></strong>...

# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://<strong><ambari-server-hostname></strong>:8080/api/v1/clusters/<strong><CLUSTERNAME></strong>...

# curl -u admin:admin -X GET http://<strong><ambari-server-hostname></strong>:8080/api/v1/clusters/<strong><CLUSTERNAME></strong>...

3. Start the AMS service from Ambari UI.

Here:

Replace following :

<ambari-server-hostname> = FullyqualifiedDomain Nameof the node running Ambari Server

<CLUSTERNAME> = Name of the Cluster

<hostname_of_Grafana_host> = FullyqualifiedDomain Name of the node where Grafana has to be deleted.

2,672 Views
Comments
Contributor

Very useful, thanks

Cloudera Employee

Note that the <strong> and </strong> strings in the code block above should be removed, since they are HTML formatting commands that somehow became visible in the formatted text of the code block.

Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎06-28-2016 01:43 PM
Updated by:
 
Contributors
Top Kudoed Authors