Kafka在Zookeeper中配置chroot,

jv4diomz  于 2022-12-09  发布在  Apache
关注(0)|答案(1)|浏览(246)

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

vohkndzv

vohkndzv1#

找到了。
我们必须在连接字符串的末尾添加 chroot 目录,如下所示:

zookeeper.connect=10.114.0.2:2181,10.114.0.3:2181,10.114.0.4:2181/kafka

相关问题