I'm trying to run kafka in supervision mode so that it can start automatically in case of a shutdown. But all the examples of running kafka use shell scripts and the supervisord
is not able to note which PID to monitor. Can anyone suggesthow to accomplish auto restart of kafka?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Serializing a serialized Thrift struct to Kafka in
- Kafka broker shutdown while cleaning up log files
- Getting : Error importing Spark Modules : No modul
- How to transform all timestamp fields when using K
相关文章
- Kafka doesn't delete old messages in topics
- Kafka + Spark Streaming: constant delay of 1 secon
- Spring Kafka Template implementaion example for se
- How to fetch recent messages from Kafka topic
- Determine the Kafka-Client compatibility with kafk
- Kafka to Google Cloud Platform Dataflow ingestion
- Kafka Producer Metrics
- STORM ERROR java.lang.UnsatisfiedLinkError?
We are running Kafka under Supervisord (http://supervisord.org/), it works like a charm. Run command looks like this (as specified in
supervisord.conf
file:Flag
-f
tells Kafka to start in foreground. If flag-p
is set, Kafka process PID is written into specified file.The command
pidproxy
is a part of Supervisord distribution. Upon receivingKILL
signal, it reads PID from specified file, and forwards the signal to the corresponding process.If you are on a Unix or Linux machine, then this is when /etc/inittab comes in handy. Or you might want to use daemontools. I don't know about Windows though.