Support Questions

Find answers, ask questions, and share your expertise

how can i delete a bad client?

avatar
New Contributor

how can i delete a bad client?

3230-4pic.jpg

1 ACCEPTED SOLUTION

avatar
Super Guru
@kael lee

you can delete the client using rest api call -

try listing services 1st and grep for oozie-

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://<ambari-server-fqdn>:8080/api/v1/clusters/<clustername>/services/ |grep oozie

refer delete command from below ur -

https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+compon...

View solution in original post

6 REPLIES 6

avatar

@kael lee

You could use the below Curl command to do the same. Change the AMBARI SERVER, Cluster name (c1) ,

Hostname and component , For example OOZIE_CLIENT

curl -u admin:admin -X DELETE http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/hosts/HOSTNAME/host_components/COMPONENTNAME

avatar
Explorer

@Jagatheesh Ramakrishnan Thanks for this info. It helped me 🙂

avatar
Super Guru
@kael lee

you can delete the client using rest api call -

try listing services 1st and grep for oozie-

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://<ambari-server-fqdn>:8080/api/v1/clusters/<clustername>/services/ |grep oozie

refer delete command from below ur -

https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+compon...

avatar
New Contributor

thanks you

I'm going to give it a try

avatar
Contributor

@Sagar Shimpi : will this process cleanup physical folders and dependencies automatically by running curl command or Ambari service deletion ? if not , do we need to delete manually ? thanks in advance.

avatar

Hi there @kael lee To delete a service or client you need to use the Ambari API

There are worked examples in the Apache Ambari documentation linked below:

https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+compon...

I used this recently so it should work fine for you.