confluentinc / cp-all-in-one

docker-compose.yml files for cp-all-in-one , cp-all-in-one-community, cp-all-in-one-cloud, Apache Kafka Confluent Platform
958 stars 684 forks source link

must always recreate connectors after docker down and up #74

Open mohammad362 opened 3 years ago

mohammad362 commented 3 years ago

i create connector in kafka connect, every time that my container down and up, the created connector not exists. how can i persist the data for kafka connect?

OneCricketeer commented 3 years ago

Connect uses Kafka for persistent storage.

You need to mount volumes and add a variable KAFKA_LOG_DIRS in the broker.