- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How do you remove SmartSense when in a pending install state?
- Labels:
-
Hortonworks SmartSense
Created ‎11-09-2015 05:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SmartSense install failed and is stuck in a "pending" state. We want to remove it from Ambari and retry the install.
Created ‎11-09-2015 09:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Follow these steps exactly as-is: http://docs.hortonworks.com/HDPDocuments/SS1/SmartSense-1.1.0/bk_smartsense_admin/content/ch01s02s05...
Created ‎11-09-2015 05:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/SMA RTSENSE
- 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: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/SMA RTSENSE
- Restart ambari server for all changes to take effect
# ambariÂserver restart
Created ‎11-09-2015 05:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The curl command is written for an "installed" state. Do you know what ServiceInfo state is for a pending install? I tried "PENDING" and that's not a valid value.
Created ‎11-09-2015 05:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try this.
curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE http://`hostname -f`:8080/api/v1/clusters/<cluster name>/services/SMARTSENSE
Created ‎11-09-2015 06:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Paul Codding Could you please take a look on this?
Created ‎11-09-2015 05:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Documentation states explicitly that service will not be able to removed if you try to delete the service in a non-stopped state.
Created ‎11-09-2015 06:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Agree. Did you try running the previous command?
Created ‎11-14-2015 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Scott Shaw How did the delete process go?
Created ‎11-09-2015 09:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Follow these steps exactly as-is: http://docs.hortonworks.com/HDPDocuments/SS1/SmartSense-1.1.0/bk_smartsense_admin/content/ch01s02s05...
