bbaugher / confluent

A Chef cookbook to install the Confluent Platform
MIT License
15 stars 7 forks source link

Kafka-rest and Schema-registry wont start after reboot #12

Open ZeroWiggliness opened 8 years ago

ZeroWiggliness commented 8 years ago

Hi,

Both Kafka-rest and Schema-registry do not start after a reboot with Ubuntu 14.04 (first noticed after an image was created). They fail because Kafka at this time has not finished starting. Have tried forcing the priority with little effect.

It would also be useful to disable auto start of these services via attributes as I want to get them to use the auto broker ids which isn't possible due to the configuration.

ZeroWiggliness commented 8 years ago

Seems to work by adding the chef service priority directly in the service. These are the values I had (in the relevant files)

kafka.rb: service "kafka" do action [:enable, :start] priority 20 end

kafka-rest.rb: service "kafka-rest" do action [:enable, :start] priority 60 end

schema-registry: service "schema-registry" do action [:enable, :start] priority 60 end

Same as last time I have to do it this way because of works restricted open source policy. Sorry.