如何从ambari删除服务zookeeper?

时间:2016-10-04 03:46:48

标签: apache-zookeeper ambari

我正在使用此命令从ambari删除服务:

 curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://192.168.24.226:8080/api/v1/clusters/zwlbs/services/Zookeeper

响应:

{
  "status" : 404,
  "message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Service not found, clusterName=zwlbs, serviceName=ZOOKEEPER_SERVER"
}

我已经尝试过了:

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://192.168.24.226:8080/api/v1/clusters/zwlbs/services/Zookeeper_Service

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://192.168.24.226:8080/api/v1/clusters/zwlbs/services/ZOOKEEPER

如何删除ZooKeeper服务?该服务已安装。

1 个答案:

答案 0 :(得分:1)

服务名称为UPPERCASE:

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://192.16824.226:8080/api/v1/clusters/zwlbs/services/ZOOKEEPER