Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

how can i delete a bad client?

avatar
New Member

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
New Member

@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 Member

thanks you

I'm going to give it a try

avatar
New Member

@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.