ambari卸载smartsence

smartsense是hortonworks一个商业的组件功能,作用是监控集群,并提供建议,建议是不用

第一步,确定SmartSence服务均已关闭

curl -u admin:admin -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop SmartSense via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://ip地址:8080/api/v1/clusters/集群名称/services/SMARTSENSE

第二步,卸载SmartSense组件

curl -u admin:admin -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://ip地址:8080/api/v1/clusters/集群名称/requests

第三步,从Ambari中卸载掉SmartSense服务

curl -u admin:admin -H 'X-Requested-By: ambari' -X DELETE http://ip地址:8080/api/v1/clusters/集群名称/services/SMARTSENSE

第四步,重起Ambari使更改生效

ambari-server restart`

你可能感兴趣的:(ambari)