Follow dba-ninja.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

dba-ninja.com Links

Dba_db2_button

Sqlserver_dba_button

How to Rock Apache Kafka with a cheat-sheet

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



Author: Rambler (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 How to Rock Apache Kafka with a cheat-sheet


dba-ninja.com