I want to use chroot in zookeeper for Kafka data. So I set the following config in server.properties:
zookeeper.connect=10.114.0.2:2181/kafka,10.114.0.3:2181/kafka,10.114.0.4:2181/kafka
But it does not work and I see the wrong path in zookeeper:
How can I use chroot for kafka to save all kafka data in /kafka
in zookeeper?
P.S.: my Kafka version is 3.1.0
1条答案
按热度按时间vohkndzv1#
找到了。
我们必须在连接字符串的末尾添加 chroot 目录,如下所示: