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 to remove the service - KAFKA by API

Solved Go to solution
Highlighted

how to remove the service - KAFKA by API

we have cluster HDP 2.6.4 with 3 kafka brokers ( each broker installed on master machine )

we want to remove the service - KAFKA by API from the AMBARI

what is the API to delete the kafka-broker on each master machine?

what is the API to remove the KAFKA service ?

what the other steps to removed completely the kafka-brokers from the master machines?

74513-capture.png

capture.png

Michael-Bronson
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: how to remove the service - KAFKA by API

Super Mentor

@Michael Bronson

1. First Stop the Kafka Service

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"_PARSE_.STOP.KAFKA","operation_level":{"level":"SERVICE","cluster_name":"NewCluster","service_name":"KAFKA"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/KAFKA


2. Delete the Kafka Service:

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/KAFKA

.

View solution in original post

3 REPLIES 3
Highlighted

Re: how to remove the service - KAFKA by API

Super Mentor

@Michael Bronson

1. First Stop the Kafka Service

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"_PARSE_.STOP.KAFKA","operation_level":{"level":"SERVICE","cluster_name":"NewCluster","service_name":"KAFKA"}},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/KAFKA


2. Delete the Kafka Service:

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/services/KAFKA

.

View solution in original post

Highlighted

Re: how to remove the service - KAFKA by API

@Jay when we "Delete the Kafka Service:" its also remove the kafka-broker?

Michael-Bronson

Re: how to remove the service - KAFKA by API

Super Mentor

@Michael Bronson

Yes, the complete Kafka service (including all the brokers will be deleted) when we will make the 2nd call.

But If you just want to delete a particular kafka Broker then you will need to make the API call on individual host_components.

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts/kafkahost1.example.com/host_compone...

.

Don't have an account?
Coming from Hortonworks? Activate your account here