Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-22-2018 10:14 AM - edited 08-17-2019 10:39 PM
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?
Created 05-22-2018 10:47 AM
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
.
Created 05-22-2018 10:47 AM
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
.
Created 05-22-2018 10:49 AM
@Jay when we "Delete the Kafka Service:" its also remove the kafka-broker?
Created 05-22-2018 12:17 PM
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...
Created 10-08-2020 08:53 AM
Should we also delete Kafka topics before deleting the service? Will the topics still remain after deleting the service?