Get kafka connection status

98 views
Skip to first unread message

yoel g

unread,
Aug 25, 2015, 4:56:57 AM8/25/15
to kafka-clients
Hey,
I want to create a monitor in my code which sample the Kafka connection and updates a file according to connection status (connected\disconnected).
Unfortunately, I couldn't find any field in the "ConsumerConnector" class or any other class which indicates what is the status of the connection. (for example: how can I determine if the process called ConsumerConnector.shutdown() ?)
Basically I need only to know if we are connected to Kafka or not.
If someone has an easy way for implementing such thing I'll appreciate it.

thanks!!

yoel g

unread,
Aug 25, 2015, 9:06:59 AM8/25/15
to kafka-clients
I forgot to mention that I'm using JAVA with the 0.8.1.1 kafka version library.

Dana Powers

unread,
Aug 25, 2015, 12:56:54 PM8/25/15
to yoel g, kafka-clients
I don't have much direct experience w/ the java client; but it is an officially supported client, so you might also try sending a note to us...@kafka.apache.org

-Dana

--
You received this message because you are subscribed to the Google Groups "kafka-clients" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kafka-client...@googlegroups.com.
To post to this group, send email to kafka-...@googlegroups.com.
Visit this group at http://groups.google.com/group/kafka-clients.
To view this discussion on the web visit https://groups.google.com/d/msgid/kafka-clients/896a1c1d-cfaf-492b-bb5b-1d55fc0d17d5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages