Created 09-30-2015 01:20 PM
I no longer have a use for Accumulo on my cluster and would like to delete the service. But when I tried to do that in Ambari, I noticed I could only add a service, not remove one.
Created 09-30-2015 01:24 PM
Andrew, you need to use the Ambari API for doing so. You will need to first clear all the nodes which do have a component and then you will need to uninstall the service. The documentation on how to do it can be found on the ambari wiki.
Here is an example removing METRICS_COLLECTOR from a host.
curl -u admin -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/POCHDPPM01/hosts/hdmdup0002.machine.test.group/host_components...
Created 09-30-2015 01:23 PM
You can do this with the Ambari REST API like so
curl -u $USER:$PASS -i -H 'X-Requested-By: ambari' -X DELETE http://$AMBARI_HOST:$AMBARI_PORT/api/v1/clusters/<cluster-name>/services/<service-name>;
Created 09-30-2015 01:24 PM
Andrew, you need to use the Ambari API for doing so. You will need to first clear all the nodes which do have a component and then you will need to uninstall the service. The documentation on how to do it can be found on the ambari wiki.
Here is an example removing METRICS_COLLECTOR from a host.
curl -u admin -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/POCHDPPM01/hosts/hdmdup0002.machine.test.group/host_components...
Created 01-20-2016 05:41 PM
Unfortunately, does not seem to work with a failed install resulting in :
{ "status": 500, "message": "Server Error" }
Created 01-20-2016 05:43 PM
you probably have residual components that need to be removed as well or put service state in stopped state. @Rick Barthelmie
Created 01-20-2016 05:55 PM
I removed the residual components using the technique here:
http://crazyadmins.com/tag/ambari-db-remove-service-components/
And then the service deleted OK.
Created 01-20-2016 05:57 PM
glad it worked!
Created 05-04-2018 10:46 AM
Login to ambari database.
Remove the entry for service_name='Accumulo' from following five tables of ambari database in same sequence.