HI, I hope everyone is well, Im having this proble...
# troubleshooting
c
HI, I hope everyone is well, Im having this problem when creating a table with connection to Kafka from another server: > {"code":500,"error":"org.apache.pinot.spi.stream.TransientConsumerException: org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata"}. Kafka configuration :
kafka:
image: docker.io/bitnami/kafka:2-debian-10
hostname: kafka
restart: always
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9202
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://${KAFKA_SERVER}:9202
- KAFKA_INTER_BROKER_LISTENER_NAME=CLIENT
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_DELETE_TOPIC_ENABLE=true
- JMX_PORT=9099
- KAFKA_BROKER_ID=0
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
# - KAFKA_SOCKET_SEND_BUFFER_BYTES=100485760
# - KAFKA_SOCKET_RECEIVE_BUFFER_BYTES=100485760
# - KAFKA_MESSAGE_MAX_BYTES=100485760
depends_on:
- zookeeper
ports:
- ${KAFKA_PORT}:9202
......the streamConfig:
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "ds_bodypose_dev",
"stream.kafka.broker.list": "{IP}:9202",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.core.realtime.impl.kafka2.KafkaConsumerFactory",
"realtime.segment.flush.threshold.rows": "100000",
"realtime.segment.flush.threshold.time": "1h"
}.
The Kafka service is running on a different server and connected to the server where Pinot is running.
h
Can you try with exposing port
9092
& stream config change
"stream.kafka.broker.list": "kafka:9092",