Closed ledroide closed 7 years ago
Partly solved. Removed line "console log" from /etc/init/kafka.conf and reloaded upstart config :
serge:~$ initctl --verbose reload-configuration
serge:~$ initctl status kafka
kafka stop/waiting
initctl start kafka
serge:~$ kafka start/running, process 17791
Unfortunately, kafka crashes immediately after start, with no clue in /var/log/kafka/kafka.* ; anyway the upstart issue should be solved just by removing "console log" from /etc/init/kafka.conf.
Also solved init script in /etc/init/kafka.conf , which has unsupported options for CentOS 6.8.
Replace this line :
exec sudo --set-home --user="${USER}" --group="${GROUP}" /bin/sh -c "${KAFKA_OPTS} /usr/local/kafka/bin/kafka-server-start.sh /etc/kafka/server.properties 1>>${STDOUT} 2>>${STDERR}"
by :
exec sudo -H -u ${USER} -g ${GROUP} /bin/sh -c "${KAFKA_OPTS} /usr/local/kafka/bin/kafka-server-start.sh {{ kafka_conf_dir }}/server.properties 1>>${STDOUT} 2>>${STDERR}"
then it works and launches kafka.
This change has no incidence on CentOS 7 until upstart is now replaced by systemd.
Pull request for bugfix on template kafka.conf.j2 coming soon...
@ledroide Are you hooking us up with Centos compatibility!?!?
...
Awesome!
There is an unsupported syntax in /etc/init/kafka.conf