SmartSense Administration Guide
Also available as:
PDF

Uninstall SmartSense from Ambari

To remove the SmartSense service and view, follow the steps below.

  1. 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/SMARTSENSE

  2. Uninstall 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/requests

    [Note]Note

    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.

  3. 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/SMARTSENSE

  4. Restart ambari server for all changes to take effect:

    # ambari-server restart