cerner / cerner_kafka

A Kafka Cookbook for Chef
Apache License 2.0
30 stars 25 forks source link

Kafka 2.x upgrade #66

Closed noslowerdna closed 5 years ago

noslowerdna commented 5 years ago

Placeholder issue for upgrading cerner_kafka to kafka 2.x, if any changes need to be made

The latest release was 2.2

noslowerdna commented 5 years ago

One fairly trivial problem we found is that the init.d script no longer detects the running kafka broker process, because with the classpath library additions its full command line size has increased to the point where "kafka.Kafka" occurs beyond the Linux PAGE_SIZE (4096) number of characters.

Changing the broker process detection command in the kafka_initd.erb template from pgrep -u kafka -f kafka.Kafka to pgrep -u kafka -x java -P 1 should be safe, and fixes the issue.