当前位置:   article > 正文

数据写到Kafka报了一些错误,// 未完_the server disconnected before a response was rece

the server disconnected before a response was received.. going to request me

2019-03-06 Kafka的一些报错记录(主要是往Kafka集群写入数据的过程中)

RuntimeException org.apache.kafka.common.errors.NetworkException ERROR KafkaProducer:

org.apache.kafka.common.errors.NotLeaderForPartitionException

org.apache.kafka.common.errors.NetworkException

org.apache.kafka.common.errors.TimeoutException

  1. org.apache.kafka.common.errors.NetworkException: The server disconnected before a response was received.

  2. org.apache.kafka.common.errors.TimeoutException: Batch containing 32 record(s) expired due to timeout while requesting metadata from brokers for xx-topic

  3. org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition.

2019-03-13 问题原因回顾

新人做到如下几点

  • 不懂的一定要问人
  • 不要值看KafkaProducer自己是如何实现的,还要看:服务器机器情况,网络传输情况,
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/816155
推荐阅读
相关标签
  

闽ICP备14008679号