strimzi kafka operator manages existing kafka #4260
Replies: 2 comments 1 reply
-
I'm not sure what exactly are you trying to achieve. HostPath volumes are not a good choice because they don't bind to a particular machines. If you wanna use local disks, you should use Local Persistent Volumes. If you want to migrate the data from other Kafka cluster by copying them, I think that should work - but you need to make sure to place them into the right place in the PV => the same one as where Strimzi would put them. |
Beta Was this translation helpful? Give feedback.
-
We first deployed Kafka in k8s using deployment and hostpath methods. Now we find that your company’s Kafka operator is very good. We want to try to use them to manage Kafka clusters, including the Kafka clusters that have been deployed using deployment and hostpath methods. |
Beta Was this translation helpful? Give feedback.
-
I directly deployed a kafka cluster using the kafka installation file, kafka_2.12-2.5.0.tgz. I specified the path on the physical machine
/kafka-zookeeper-data/kafka-0
as the log directory of kafka, and/kafka-zookeeper-data/zookeeper-0
as the data directory of zookeeper, and then I created topics to produce and consume data. In other words, I wrote some data in/kafka-zookeeper-data/kafka-0
and/kafka-zookeeper-data/zookeeper-0
.In the second step, I created pv and pvc, and pv uses hostpath,
/kafka-zookeeper-data/kafka-0
and/kafka-zookeeper-data/zookeeper-0
Finally, I deployed the strimzi kafka operator and also created the kafka cluster.
The kafka cluster can be successfully created, but I found that the operator cannot automatically discover the existing topic, and will not create a kafkatopic because of the topic in kafka itself. The data that has been written to the cluster cannot be consumed again.
I would like to ask if the operator does not support this scenario or the steps I have taken are wrong.
Can the operator manage an existing Kafka cluster ?
Beta Was this translation helpful? Give feedback.
All reactions