Hi,
If you are using version 1.1.0 or want to upgrade to it, and the method is by puppet module provided from voxpopuli, please be aware of this issue.
In the template used for the init script that it’s located under /etc/init.d/kafka and as you can also see on the latest version below:
https://github.com/voxpupuli/puppet-kafka/blob/master/templates/init.erb
There are some lines that take the PID file for the kafka broker by using command
`pgrep -f "$PGREP_PATTERN"`
. This isn’t a problem for earlier version, but unfortunately for the latest, it doesn’t return anything causing for the init script to exit with return code 1 (my suspicion is that the process name changed).
I fixed this by replacing this string with the following
`ps -ef | grep "$PGREP_PATTERN" | grep -v grep | awk {'print $2}'`
and it seems to work just fine.
This doesn’t have any impact on the already configured and running cluster, and it will not restart your Kafka brokers.
P.S: PGREP_PATTERN will resolve to kafka.Kafka which is the string to differentiate the broker instance
Cheers