Flink1.14.0 版本中,消费kafka时报以下错误:
org.apache.flink.connector.kafka.source.metrics.KafkaSourceReaderMetrics[] -
Error when getting Kafka consumer metric "records-lag" for partition "xxxx-0". Metric "pendingBytes" may not be reported correctly
报的warn级别的日志;可以试下以下方法
将flink版本提高到1.14.3
参考下以下链接:
https://issues.apache.org/jira/browse/FLINK-24409
https://github.com/apache/flink/pull/17401/files
感谢我的同事帮忙排查