可能出现的3种报错
-- 报错1 Failed to get metadata for topics [...]. org.apache.kafka.common.errors.TimeoutException: Call -- 报错2 Caused by: org.apache.kafka.common.errors.TimeoutException: Timed out waiting to send the call. Call: fetchMetadata Heartbeat must be set lower than the session timeout -- 报错3 Timed out waiting for a node assignment. Call: describeTopics
--文章来源地址https://www.toymoban.com/news/detail-725225.html
-- 解决方法: consumer的配置中 添加下面参数解决: com.tuya.flink.EnergyMeteringMontior.Drive#buildKafkaProducer // session.timeout.ms 默认10s kafkaProps.put("session.timeout.ms","10000") // heartbeat.interval.ms 默认3s kafkaProps.put("heartbeat.interval.ms","3000")
文章来源:https://www.toymoban.com/news/detail-725225.html
到了这里,关于flink k8s sink到kafka报错 Failed to get metadata for topics的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!