Kafka cheatsheet

02 May,2019 by Jack Vamvas

This cheatsheet covers regularly used commands across different deployments of 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



Author: Jack Vamvas (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

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.

Working...

Post a comment on Kafka cheatsheet


dba-ninja.com