Open samyujialiu opened 4 years ago
Hi @samyujialiu,
Can I ask what you've done to investigate the issue so far?
The error message is saying that the command topic (with a name I can't copy here as its in an image), doesn't exist.
Have you confirmed it does or doesn't exist in the Kafka cluster?
If it does exist, it could be an ACLs problem if you have them enabled. Does the ksqlDB user have permissions to describe the cluster and/or topic?
HI there: We are running our kafka on docker compose. It works fine if Kafka starts the first time, while KSQLDB crashed if we restart it. Now, the only solution is delete the persistent files (zookeeper and broker) and restart them. Can you pls help us find the problem? Thanks a lot The docker compose are below:
version: '3.3' services: zookeeper: image: confluentinc/cp-zookeeper:${CONFLUENT_VERSION} hostname: zookeeper ports:
./noproxy.conf
broker: image: confluentinc/cp-enterprise-kafka:${CONFLUENT_VERSION} hostname: broker depends_on:
A 'safer' host mount. Using ${HOME} can be very dangerous
Overwrite the included Debezium DB2 connector JARS
- ./host-safe/debezium-db2-jars:/usr/share/java/kafka/debezium-connector-db2
environment: CONNECT_BOOTSTRAP_SERVERS: 'broker:${BROKER_LISTENER_INTERNAL_PORT}' CONNECT_REST_ADVERTISED_HOST_NAME: connect CONNECT_REST_PORT: ${CONNECT_INTERNAL_PORT} CONNECT_GROUP_ID: compose-connect-group CONNECT_CONFIG_STORAGE_TOPIC: docker-connect-configs CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1 CONNECT_OFFSET_FLUSH_INTERVAL_MS: 10000 CONNECT_OFFSET_STORAGE_TOPIC: docker-connect-offsets CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1 CONNECT_STATUS_STORAGE_TOPIC: docker-connect-status CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1 CONNECT_KEY_CONVERTER: org.apache.kafka.connect.storage.StringConverter CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:${SCHEMA_REGISTRY_INTERNAL_PORT} CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter" CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter" CONNECT_ZOOKEEPER_CONNECT: 'zookeeper:${ZOOKEEPER_INTERNAL_PORT}'
Assumes image is based on confluentinc/kafka-connect-datagen:${CONFLUENT_VERSION} which is pulling 5.1.1 Connect image
CLASSPATH: /usr/share/java/monitoring-interceptors/monitoring-interceptors-${CONFLUENT_VERSION}.jar CONNECT_PRODUCER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor" CONNECT_CONSUMER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor"
Include a volume mounted plugins path for testing plugins
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/etc/kafka-connect/jars,/data/shared/safe/connect-plugins" CONNECT_LOG4J_LOGGERS: org.apache.zookeeper=ERROR,org.I0Itec.zkclient=ERROR,org.reflections=ERROR CONNECT_CONNECTOR_CLIENT_CONFIG_OVERRIDE_POLICY: 'All' command: "bash -c 'if [ ! -d /usr/share/confluent-hub-components/confluentinc-kafka-connect-datagen ]; then echo \"WARNING: Did not find directory for kafka-connect-datagen (did you remember to run: docker-compose up -d --build ?)\"; fi ; /etc/confluent/docker/run'" env_file:
./noproxy.conf
ksql-cli: image: confluentinc/ksqldb-cli:${CONFLUENT_VERSION} hostname: ksql-cli depends_on:
ksql-datagen:
Downrev ksql-examples to 5.1.2 due to DEVX-798 (work around issues in 5.2.0)
image: confluentinc/ksql-examples:${CONFLUENT_VERSION}
hostname: ksql-datagen
depends_on:
- ksql-server
- broker
- schema-registry
- connect
command: "bash -c 'echo Waiting for Kafka to be ready... && \
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
KSQL_LOG4J_OPTS: "-Dlog4j.configuration=file:/etc/ksql/log4j-rolling.properties"
STREAMS_BOOTSTRAP_SERVERS: broker:${BROKER_LISTENER_INTERNAL_PORT}
STREAMS_SCHEMA_REGISTRY_HOST: schema-registry
STREAMS_SCHEMA_REGISTRY_PORT: ${SCHEMA_REGISTRY_INTERNAL_PORT}
env_file:
- ./noproxy.conf
rest-proxy: image: confluentinc/cp-kafka-rest:${CONFLUENT_VERSION} hostname: rest-proxy depends_on: