Kafka on mac os : zookeeper and dataDir


when you install kafka with “brew install kafka”, zookeeper is installed in addition, with the same formulae, and it is written that the config file /usr/local/etc/kafka/zookeeper.properties is the config file for zookeeper

in fact the real config file used by “brew services start zookeeper” is : /usr/local/etc/zookeeper/zoo.cfg

and dataDir variable is different in each config file

/usr/local/etc/kafka/zookeeper.properties => dataDir=/usr/local/var/lib/zookeeper
/usr/local/etc/zookeeper/zoo.cfg => dataDir=/usr/local/var/run/zookeeper/data

it would be a great thing if zoo.cfg had the same value than zookeeper.properties
or to use the same config file please

Good find, please make a pull request to change it to the correct values.

I will give it a try

i just noticed that zookeeper is installed with kafka (brew install kafka)
and can also be installed alone (brew install zookeeper)

That’s odd, maybe we should decouple those.