<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Zookeeper issue with java.net.SocketTimeoutException: Read timed out in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-issue-with-java-net-SocketTimeoutException-Read/m-p/67159#M72685</link>
    <description>&lt;P&gt;Issue is due to zookeeper timeout to the brokers. The broker znodes are removed in zookeeper but the brokers are available for producing and consuming. To solve the issue, increase the zookeeper client session timeout to a reasonable value. CM doesn't alert about the znodes not available in zookeeper. This alerting seems to be available from CM 5.14.x&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2018 08:31:19 GMT</pubDate>
    <dc:creator>RajeshBodolla</dc:creator>
    <dc:date>2018-05-11T08:31:19Z</dc:date>
    <item>
      <title>Zookeeper issue with java.net.SocketTimeoutException: Read timed out</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-issue-with-java-net-SocketTimeoutException-Read/m-p/62811#M72684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a new cluster with CDH 5.11.2. It has only kafka and zookeeper services. Zookeeper ocassionally goes bad with below error causing the kafka brokers to be in green in cloudera manager but are actually bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Zookeeper log:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-12-14 18:31:00,004 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /&lt;SPAN&gt;xx.xxx.x.xx&lt;/SPAN&gt;:33488 which had sessionid 0x25fd2436dd488c5&lt;BR /&gt;2017-12-14 18:31:03,691 &lt;STRONG&gt;ERROR org.apache.zookeeper.server.quorum.LearnerHandler: Unexpected exception causing shutdown while sock still open&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;java.net.SocketTimeoutException: Read timed out&lt;/STRONG&gt;&lt;BR /&gt;at java.net.SocketInputStream.socketRead0(Native Method)&lt;BR /&gt;at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)&lt;BR /&gt;at java.net.SocketInputStream.read(SocketInputStream.java:171)&lt;BR /&gt;at java.net.SocketInputStream.read(SocketInputStream.java:141)&lt;BR /&gt;at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)&lt;BR /&gt;at java.io.BufferedInputStream.read(BufferedInputStream.java:265)&lt;BR /&gt;at java.io.DataInputStream.readInt(DataInputStream.java:387)&lt;BR /&gt;at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)&lt;BR /&gt;at org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)&lt;BR /&gt;at org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:99)&lt;BR /&gt;at org.apache.zookeeper.server.quorum.LearnerHandler.run(LearnerHandler.java:499)&lt;BR /&gt;2017-12-14 18:31:03,691 WARN org.apache.zookeeper.server.quorum.LearnerHandler: ******* GOODBYE /xx.xxx.x.xx:58030 ********&lt;BR /&gt;2017-12-14 18:31:18,000 INFO org.apache.zookeeper.server.ZooKeeperServer: Expiring session 0x360200cd8173815, timeout of 30000ms exceeded&lt;BR /&gt;2017-12-14 18:31:18,000 INFO org.apache.zookeeper.server.PrepRequestProcessor: Processed session termination for sessionid: 0x360200cd8173815&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Kafka Log:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-12-14 18:31:11,274 INFO org.apache.curator.framework.state.ConnectionStateManager: State change: SUSPENDED&lt;BR /&gt;2017-12-14 18:31:17,275 &lt;STRONG&gt;ERROR org.apache.curator.ConnectionState: Connection timed out for connection string (xxxxxxxxx.devkafka.pre.corp:2181,xxxxxxxxx.devkafka.pre.corp:2181,xxxxxxxxx.devkafka.pre.corp:2181/kafkadev) and timeout (6000) / elapsed (6002)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss&lt;/STRONG&gt;&lt;BR /&gt;at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:195)&lt;BR /&gt;at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:87)&lt;BR /&gt;at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:115)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:821)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:807)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:63)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:267)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2017-12-14 18:31:18,275 &lt;STRONG&gt;ERROR org.apache.curator.ConnectionState: Connection timed out for connection string (xxxxxxxxx.devkafka.pre.corp:2181,xxxxxxxxx.devkafka.pre.corp:2181,xxxxxxxxx.devkafka.pre.corp:2181/kafkadev) and timeout (6000) / elapsed (7002)&lt;/STRONG&gt;&lt;BR /&gt;org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss&lt;BR /&gt;at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:195)&lt;BR /&gt;at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:87)&lt;BR /&gt;at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:115)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:821)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:807)&lt;BR /&gt;at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:63)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:38:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-issue-with-java-net-SocketTimeoutException-Read/m-p/62811#M72684</guid>
      <dc:creator>RajeshBodolla</dc:creator>
      <dc:date>2022-09-16T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Zookeeper issue with java.net.SocketTimeoutException: Read timed out</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-issue-with-java-net-SocketTimeoutException-Read/m-p/67159#M72685</link>
      <description>&lt;P&gt;Issue is due to zookeeper timeout to the brokers. The broker znodes are removed in zookeeper but the brokers are available for producing and consuming. To solve the issue, increase the zookeeper client session timeout to a reasonable value. CM doesn't alert about the znodes not available in zookeeper. This alerting seems to be available from CM 5.14.x&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 08:31:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zookeeper-issue-with-java-net-SocketTimeoutException-Read/m-p/67159#M72685</guid>
      <dc:creator>RajeshBodolla</dc:creator>
      <dc:date>2018-05-11T08:31:19Z</dc:date>
    </item>
  </channel>
</rss>

