Uninstall SmartSense from Ambari
To remove the SmartSense service and view, follow the steps below.
First make sure all of the SmartSense services are stopped from the Ambari UI. (Optionally you can run below command). Please ensure that all the SmartSense services are completely stopped before continuing. If they are not stopped, the uninstallation process will not be successful, and the service will not be able to be removed.
curl -u admin:
$PASSWORD
-i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop SmartSense via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://AMBARI_SERVER_HOST:8080
/api/v1/clusters/CLUSTER_NAME
/services/SMARTSENSEUninstall all SmartSense components:
curl -u admin:
$PASSWORD
-i -H 'X-Requested-By: ambari' -X POST -d '{"RequestInfo": {"context" :"Uninstall SmartSense via REST", "command":"Uninstall"}, "Requests/resource_filters":[{"hosts":"comma separated host names
", "service_name":"SMARTSENSE", "component_name":"HST_AGENT"}]}' http://AMBARI_SERVER_HOST:8080
/api/v1/clusters/CLUSTER_NAME
/requestsNote After issuing this command wait for Ambari operations to successfully complete. You can check this through Ambari UI . Make sure that there are no operations in progress.
Run the following command to remove SmartSense service from Ambari:
curl -u admin:
$PASSWORD
-H 'X-Requested-By: ambari' -X DELETE http://AMBARI_SERVER_HOST:8080
/api/v1/clusters/CLUSTER_NAME
/services/SMARTSENSERestart ambari server for all changes to take effect:
# ambari-server restart