02 May,2019 by Rambler
This Apache Kafka cheat sheet covers regularly used commands across different deployments of Apache Kafka.
--view error logs on Confluent Kafka
confluent log connect tail -f
--How to retrieve broker properties from a client
step 1 - Enter zookeeper shell
zookeeper-shell localhost:2181
step 2 - get /brokers/ids/0
--Check Confluent Current
confluent current
--Check Confluent version
confluent version
--List Connectors currently loaded
confluent status connectors
--List Kafka topics
/bin/kafka-topics --zookeeper localhost:2181 --list
--Delete a Kafka topic
bin/kafka-topics --zookeeper localhost:2181/chroot --delete --topic my_topic_
--Set error logging to DEBUG level
edit $(confluent_home)/etc/kafka/connect-log4j.properties
log4j.rootLogger=DEBUG,stdout
restart Connect
--List configured Connectors
curl localhost:8083/connectors
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |