You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "huxi (JIRA)" <ji...@apache.org> on 2017/05/12 07:34:04 UTC

[jira] [Commented] (KAFKA-5222) Kafka Connection error in contoller.logs

    [ https://issues.apache.org/jira/browse/KAFKA-5222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007742#comment-16007742 ] 

huxi commented on KAFKA-5222:
-----------------------------

Did you set `broker.id` in server.properties? I wonder where the `Connection to 1` comes from if you did not set this config and only one broker is started since the default broker is starts from zero.

> Kafka Connection error in contoller.logs
> ----------------------------------------
>
>                 Key: KAFKA-5222
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5222
>             Project: Kafka
>          Issue Type: Bug
>          Components: log
>    Affects Versions: 0.10.2.0
>         Environment: AMI - Amazon Linux AMI 
> Hardware Specifications - (8 core, 16 GB RAM , 1 TB HardDisk)
>            Reporter: Abhimanyu Nagrath
>            Priority: Minor
>
> I am using single node Kafka and single node zookeeper and my controller.log files are flooded with this exception.
>     java.io.IOException: Connection to 1 was disconnected before the response was read
>     	at kafka.utils.NetworkClientBlockingOps$.$anonfun$blockingSendAndReceive$3(NetworkClientBlockingOps.scala:114)
>     	at kafka.utils.NetworkClientBlockingOps$.$anonfun$blockingSendAndReceive$3$adapted(NetworkClientBlockingOps.scala:112)
>     	at scala.Option.foreach(Option.scala:257)
>     	at kafka.utils.NetworkClientBlockingOps$.$anonfun$blockingSendAndReceive$1(NetworkClientBlockingOps.scala:112)
>     	at kafka.utils.NetworkClientBlockingOps$.recursivePoll$1(NetworkClientBlockingOps.scala:136)
>     	at kafka.utils.NetworkClientBlockingOps$.pollContinuously$extension(NetworkClientBlockingOps.scala:142)
>     	at kafka.utils.NetworkClientBlockingOps$.blockingSendAndReceive$extension(NetworkClientBlockingOps.scala:108)
>     	at kafka.controller.RequestSendThread.liftedTree1$1(ControllerChannelManager.scala:192)
>     	at kafka.controller.RequestSendThread.doWork(ControllerChannelManager.scala:184)
>     	at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:63)
> What is the fix for this error?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)