ambari删除某台机器某一个组件:

curl -u admin:admin -H “X-Requested-By: ambari” -X DELETE http://192.168.0.33:8080/api/v1/clusters/hadoop/hosts/lh-3/host_components/HBASE_CLIENT

curl -u admin:admin -H “X-Requested-By: ambari” -X DELETE http://注主节点ip:8080/api/v1/clusters/集群名字/hosts/主机名字/host_components/组件名字

附录:各个节点安装状态获取url
http://10.121.201.212:8080/api/v1/clusters/METRON/hosts?fields=host_components/HostRoles/state&minimal_response=true&sortBy=Hosts/host_name.asc

上一篇:task_2异常检测方法—统计学习方法


下一篇:Cloud native security for your clusters