<?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>topic Re: Kafka timout in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/96962#M39376</link>
    <description>&lt;P&gt;try this :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;BR /&gt;.option(&lt;SPAN&gt;'kafka.session.timeout.ms'&lt;/SPAN&gt;, 200000)&lt;BR /&gt;.option(&lt;SPAN&gt;'group.max.session.timeout.ms'&lt;/SPAN&gt;, 7200000)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;kafka.session.timeout.ms&lt;/STRONG&gt;: Specifies the timeout for detecting consumer failures.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;group.max.session.timeout.ms&lt;/STRONG&gt;: Sets the maximum allowed session timeout for a consumer group.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 31 Oct 2024 10:44:50 GMT</pubDate>
    <dc:creator>saurabh18cs</dc:creator>
    <dc:date>2024-10-31T10:44:50Z</dc:date>
    <item>
      <title>Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43724#M27535</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;I am trying to read topics from a kafaka stream but I am getting the time out error below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;java.util.concurrent.ExecutionException: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting to send the call. Call: describeTopics&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;23/09/05 18:30:52 INFO NetworkClient: [AdminClient clientId=Databricks] Disconnecting from node 4 due to socket connection setup timeout. The timeout value is 11054 ms.&lt;BR /&gt;&lt;BR /&gt;I can ping the kafka broker from databricks, the error seems to occour when I try to grab data.&lt;BR /&gt;Example code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;inputDF = (spark
.readStream
.format("kafka")
.option("kafka.bootstrap.servers", kafka_broker)
.option("kafka.ssl.endpoint.identification.algorithm", "https")
.option("kafka.sasl.mechanism", "PLAIN")
.option("kafka.security.protocol", "SASL_SSL")
.option("kafka.sasl.jaas.config", "kafkashaded.org.apache.kafka.common.security.plain.PlainLoginModule required username='{}' password='{}';".format("123", "456"))
.option("subscribe", topic)
.option("spark.streaming.kafka.maxRatePerPartition", "5")
.option("startingOffsets", "earliest")
.option("kafka.session.timeout.ms", "10000")
.load() )
display(inputDF)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any inkling as to why this might be happening?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:04:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43724#M27535</guid>
      <dc:creator>kwasi</dc:creator>
      <dc:date>2023-09-05T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43803#M27551</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp; Thanks for the reply.&lt;BR /&gt;&lt;SPAN&gt;• I dont seem to have a problem with connection, running&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;sh&lt;/SPAN&gt; &lt;SPAN&gt;nc&lt;/SPAN&gt; &lt;SPAN&gt;-zv&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;xxx.aws.confluent.cloud &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;9092 results in&amp;nbsp;&lt;BR /&gt;Connection to xxx.aws.confluent.cloud (xx.xx.xxx.xx) 9092 port [tcp/*] succeeded!&lt;BR /&gt;&lt;BR /&gt;But the timeout happens when I try to actually retrieve data using spark, as shown in the sample code above.&lt;BR /&gt;i.e after, is there anything else that I am overlooking?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;display(inputDF)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 13:59:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43803#M27551</guid>
      <dc:creator>kwasi</dc:creator>
      <dc:date>2023-09-06T13:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43901#M27570</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88207"&gt;@kwasi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we can see from the error, the failure is happening during DescribeTopics. You can check with the Kafka team to see if the brokers are communicating fine with the controller. It is timing out while trying to communicate with the nodes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the broker logs will help us.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 05:11:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/43901#M27570</guid>
      <dc:creator>Tharun-Kumar</dc:creator>
      <dc:date>2023-09-07T05:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67803#M33448</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88207"&gt;@kwasi&lt;/a&gt;&amp;nbsp;-- were you able to fix this? I am facing this issue now and any help / leads would greatly help me out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:21:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67803#M33448</guid>
      <dc:creator>Murthy1</dc:creator>
      <dc:date>2024-05-01T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67805#M33449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79247"&gt;@Murthy1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you able to connect to Kafka from Databricks, and are the brokers healthy? The error&amp;nbsp;&lt;SPAN&gt;indicates Databricks is unable to connect to Kafka cluster, possibly due to network issues or incorrect configuration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;We can try nc command from a notebook to validate the connectivity.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 10:39:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67805#M33449</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-05-01T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67817#M33454</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;&amp;nbsp;.. Thanks for responding! Yes I am able to connect the confluent cloud (Kafka) from the notebook through nc command. I am facing the error when I try to do df.show() as same as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88207"&gt;@kwasi&lt;/a&gt;&amp;nbsp;. Any help here will be appreciated !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 12:51:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/67817#M33454</guid>
      <dc:creator>Murthy1</dc:creator>
      <dc:date>2024-05-01T12:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/70092#M33985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79247"&gt;@Murthy1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this an intermittent issue or you are regularly facing this.&amp;nbsp;&lt;SPAN&gt;The issue is while fetching the topic-level metadata.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I checked internally on this, it is possible it can be a network issue. We may have to do a deeper dive on this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 09:54:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/70092#M33985</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-05-21T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/89266#M37749</link>
      <description>&lt;P&gt;What event hub namespace you were using?&lt;BR /&gt;&lt;BR /&gt;I had same problem and resolved by changing pricing plan from basic to standard as Kafka apps is not supporting in basic plan&lt;BR /&gt;&lt;BR /&gt;Let me know if you had anything else. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 09:55:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/89266#M37749</guid>
      <dc:creator>devmehta</dc:creator>
      <dc:date>2024-09-10T09:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/96949#M39368</link>
      <description>&lt;P&gt;If all the configurations are correct for security mainly kafka.sasl.jaas.config&amp;nbsp;then consider checking the Kafka broker logs for more detailed error messages that might provide further insights.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 09:43:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/96949#M39368</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-10-31T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/96962#M39376</link>
      <description>&lt;P&gt;try this :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;BR /&gt;.option(&lt;SPAN&gt;'kafka.session.timeout.ms'&lt;/SPAN&gt;, 200000)&lt;BR /&gt;.option(&lt;SPAN&gt;'group.max.session.timeout.ms'&lt;/SPAN&gt;, 7200000)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;kafka.session.timeout.ms&lt;/STRONG&gt;: Specifies the timeout for detecting consumer failures.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;group.max.session.timeout.ms&lt;/STRONG&gt;: Sets the maximum allowed session timeout for a consumer group.&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Oct 2024 10:44:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/96962#M39376</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2024-10-31T10:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka timout</title>
      <link>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/121993#M46616</link>
      <description>&lt;P&gt;What's your Kafka Broker version and which Kafka client is in use (spark's, python-kafka, kafka-confluent,...) ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 13:58:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/kafka-timout/m-p/121993#M46616</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2025-06-17T13:58:45Z</dc:date>
    </item>
  </channel>
</rss>

