Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how can i delete a bad client?

Solved Go to solution
Highlighted

how can i delete a bad client?

New Contributor

how can i delete a bad client?

3230-4pic.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: how can i delete a bad client?

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

6 REPLIES 6

Re: how can i delete a bad client?

@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

Re: how can i delete a bad client?

New Contributor

@Jagatheesh Ramakrishnan Thanks for this info. It helped me :)

Re: how can i delete a bad client?

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

Re: how can i delete a bad client?

New Contributor

thanks you

I'm going to give it a try

Re: how can i delete a bad client?

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.

Re: how can i delete a bad client?

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.