Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-09-2015 05:15 PM
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
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
Uninstall SmartSense from Ambari
To remove the SmartSense service and view, follow the steps below.
curl u admin:$PASSWORDi H 'XRequestedBy: 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
curl u admin:$PASSWORDi H 'XRequestedBy: 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.
curl u admin:$PASSWORDH 'XRequestedBy: ambari' X DELETE http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/SMA RTSENSE
# ambariserver restart
Created 11-09-2015 05:30 PM
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
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
@Paul Codding Could you please take a look on this?
Created 11-09-2015 05:55 PM
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
Agree. Did you try running the previous command?
Created 11-14-2015 03:22 AM
@Scott Shaw How did the delete process go?
Created 11-09-2015 09:22 PM
Follow these steps exactly as-is: http://docs.hortonworks.com/HDPDocuments/SS1/SmartSense-1.1.0/bk_smartsense_admin/content/ch01s02s05...