Kafka Error in I/O java.io.EOFException: null

后端 未结 2 502
萌比男神i
萌比男神i 2020-12-31 19:20

I am using Kafka 0.8.2.0 (Scala 2.10). In my log files, I see the following message intermittently. This seems like a connectivity issue, but I\'m running both in my localho

相关标签:
2条回答
  • 2020-12-31 20:08

    This is a bit later to the party, but may help someone - it would have helped me.

    What you're seeing occurs because the Kafka broker is passively closing the connection after a certain period of idleness is exceeded. It's defined by this broker property: connections.max.idle.ms - the default is 10 minutes.

    Apparently the kafka client in 0.8.x doesn't honour that setting and just leaves idle connections open. You'll see the warning in your logs but it should have no bad effect on your application.

    More details here: https://issues.apache.org/jira/browse/KAFKA-3205

    The broker config is documented here: https://kafka.apache.org/090/documentation/#configuration

    In that table you'll find:

    Name: connections.max.idle.ms
    Description: Idle connections timeout: the server socket processor threads close the connections that idle more than this
    Type:long
    Default: 600000
    

    Hope that helps.

    0 讨论(0)
  • 2020-12-31 20:20

    It seems like your producer can not connect to kafka broker. I suggest you try to send some messages with kafka console producer in order to verify your system is configured properly.

    0 讨论(0)
提交回复
热议问题