Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Last active July 20, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrancesnyder/444f97042fee8af6fce4 to your computer and use it in GitHub Desktop.
Save terrancesnyder/444f97042fee8af6fce4 to your computer and use it in GitHub Desktop.
Kafka 0.8.x Fix
sudo su
echo "Shutting down sync server... try 1"
service kafka-sync stop
sleep 2
echo "Shutting down sync server... try 2"
service kafka-sync stop
sleep 2
echo "Shutting down server... try 1"
service kafka-server stop
sleep 2
echo "Shutting down server... try 2"
service kafka-server stop
sleep 2
ps -ef | grep kafka | grep -v grep | awk '{print $2}' | xargs kill -9
sleep 2
echo "" > /var/log/kafka-server.sys.log
echo "" > /var/log/kafka-sync.sys.log
service kafka-server start
sleep 30
service kafka-sync start
echo "Done"
@terrancesnyder
Copy link
Author

shopt -s globstar
find ./consumers-*/* -type f -exec rm -rf {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment