Flink1.17.1消费kafka3.5中的数据出现问题Failed to get metadata for topics [flink].
【代码】Flink1.17.1消费kafka3.5中的数据出现问题Failed to get metadata for topics [flink].
·
问题呈现
Failed to get metadata for topics [flink]. at org.apache.flink.connector.kafka.source.enumerator.subscriber.KafkaSubscriberUtils.getTopicMetadata(KafkaSubscriberUtils.java:47) at org.apache.flink.connector.kafka.source.enumerator.subscriber.TopicListSubscriber.getSubscribedTopicPartitions(TopicListSubscriber.java:52) at org.apache.flink.connector.kafka.source.enumerator.KafkaSourceEnumerator.getSubscribedTopicPartitions(KafkaSourceEnumerator.java:219) at org.apache.flink.runtime.source.coordinator.ExecutorNotifier.lambda$notifyReadyAsync$2(ExecutorNotifier.java:80)
解决方法
# server.properties
listeners=PLAINTEXT://0.0.0.0:9092
advertised.listeners=PLAINTEXT://<your_server_ip>:9092
# your_server_ip 用于和使用flink进行连接时配置时相同
更多推荐
已为社区贡献3条内容
所有评论(0)