如何从 ambari 中删除服务 zookeeper?

How to delete service zookeeper from 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 服务?该服务已安装。

服务名称大写:

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