Hi,
I've probably made a classic newbie error ... so perhaps someone on here can point me in the right direction, so that I can avoid this in the future.
As per my compose file below (not all shown) I had various confluent components (kafka-connect connectors, schema-registry) as well as some ui components from landoop working nicely, where I could view my topics and schemas.
I was then experimenting with a setting on the kafka container ... and knowing that I had volumes on both zookeeper and kafka containers .. I was under the impression that I could dispose of those containers (stop and remove them) and run up new ones and I would be fine.
However, when I ran up the new ones ... it seems all my schemas were gone ... the '_schema' topic is still in kafka ... but it only shows some NOOP items in the *.log file.
Have I lost all my schemas? ...or are they somehow retrievable again from the *.index file? ... and if I have lost them, what should I be doing to prevent this from happening again?
/home/data/kafka/kafka-data/_schemas-0# ls -ltr
total 4
-rw-r--r-- 1 root root 10485760 Oct 14 11:56 00000000000000000081.index
-rw-r--r-- 1 root root 186 Oct 14 12:29 00000000000000000081.log
Thanks,
Colum
services:
zookeeper:
image: confluentinc/cp-zookeeper:3.0.1
container_name: cp-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
volumes:
- /home/data/zookeeper/zk-data:/var/lib/zookeeper/data
- /home/data/zookeeper/zk-txn-logs:/var/lib/zookeeper/log
network_mode: "host"
kafka:
image: confluentinc/cp-kafka:3.0.1
container_name: cp-kafka
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: localhost:32181
KAFKA_DELETE_TOPIC_ENABLE: 'true'
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:39092
volumes:
- /home/data/kafka/kafka-data:/var/lib/kafka/data
network_mode: "host"
depends_on:
- zookeeper
schema-registry:
image: confluentinc/cp-schema-registry:3.0.1
container_name: cp-schema-registry
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: localhost:32181
SCHEMA_REGISTRY_HOST_NAME: localhost
network_mode: "host"