I operate in a work environment where all the servers are rebooted once a week whether they need it or not. An internal subsystem which gives me the opportunity to run a command on shutdown, so I wrote a simple shell script which runs kafka-server-stop.sh, waits a bit, then stops zookeeper.
Unfortunately, Kafka's careful approach to shutdown means my script is probably not given enough time for a proper shutdown, and upon reboot, I often find my brokers won't accept connections. Sometime they just need a bit of time to recover. A few times, I've simply given up and deleted my kafka-logs-N and zookeeper directories. The latest reboot was early Saturday. Two days later, my dev clients still can't connect to my dev brokers. Are there tools available which allow me to view logs and perhaps recover state? None of the shell scripts in .../bin looked promising. Thanks, Skip Montanaro