<?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 Azure Event Hub throws Timeout Exceptio: Timed out waiting for a node assignment. Call: describeTopi in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/106893#M42626</link>
    <description>&lt;P&gt;Hello team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are researching the streaming capabilities of our data platform and currently in need of reading data from EVH ( event hub) with our Databricks notebooks. Unfortunately there seems to be an error somewhere due to Timeout Exception&lt;EM&gt;&lt;STRONG&gt;: Timed out waiting for a node assignment. Call: describe Topics.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Can you please help us tackle it?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The connections were assembled as per article&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs&amp;nbsp;;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;EVH networking is set to Public access&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;DBR runtime is set as&amp;nbsp;"spark version": "15.4.x-scala2.12"&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;KAFKA_OPTIONS = {
  "kafka.bootstrap.servers"  : f"{EH_NAMESPACE}.servicebus.windows.net:9093",
  "subscribe"                : EH_NAME,
  "kafka.sasl.mechanism"     : "PLAIN",
  "kafka.security.protocol"  : "SASL_SSL",
  "kafka.group.id"           : "databricks-streaming-eh-kelvin",
  "kafka.sasl.jaas.config"   : f"kafkashaded.org.apache.kafka.common.security.plain.PlainLoginModule required username=\"$ConnectionString\" password=\"{EH_CONN_STR}\";",
  "kafka.request.timeout.ms" : 60000, # https://learn.microsoft.com/en-us/azure/event-hubs/apache-kafka-configurations#consumer-configurations-only
  "kafka.session.timeout.ms" : 300000,
  "maxOffsetsPerTrigger"     : 4000,
  "failOnDataLoss"           : True,
  "startingOffsets"          : "latest"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = (spark.readStream
    .format("kafka")
    .options(**KAFKA_OPTIONS)
    .load())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Generates the proper schema, so some sort of handshake happened between EVH and DBR&lt;H3&gt;However if I try to display my def.:&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;display(df)
java.util.concurrent.ExecutionException: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics ​&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Caused by: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 11:18:17 GMT</pubDate>
    <dc:creator>Ivan_Pyrog</dc:creator>
    <dc:date>2025-01-24T11:18:17Z</dc:date>
    <item>
      <title>Azure Event Hub throws Timeout Exceptio: Timed out waiting for a node assignment. Call: describeTopi</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/106893#M42626</link>
      <description>&lt;P&gt;Hello team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are researching the streaming capabilities of our data platform and currently in need of reading data from EVH ( event hub) with our Databricks notebooks. Unfortunately there seems to be an error somewhere due to Timeout Exception&lt;EM&gt;&lt;STRONG&gt;: Timed out waiting for a node assignment. Call: describe Topics.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Can you please help us tackle it?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The connections were assembled as per article&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs&amp;nbsp;;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;EVH networking is set to Public access&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/event-hubs" target="_blank" rel="noopener"&gt;DBR runtime is set as&amp;nbsp;"spark version": "15.4.x-scala2.12"&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;KAFKA_OPTIONS = {
  "kafka.bootstrap.servers"  : f"{EH_NAMESPACE}.servicebus.windows.net:9093",
  "subscribe"                : EH_NAME,
  "kafka.sasl.mechanism"     : "PLAIN",
  "kafka.security.protocol"  : "SASL_SSL",
  "kafka.group.id"           : "databricks-streaming-eh-kelvin",
  "kafka.sasl.jaas.config"   : f"kafkashaded.org.apache.kafka.common.security.plain.PlainLoginModule required username=\"$ConnectionString\" password=\"{EH_CONN_STR}\";",
  "kafka.request.timeout.ms" : 60000, # https://learn.microsoft.com/en-us/azure/event-hubs/apache-kafka-configurations#consumer-configurations-only
  "kafka.session.timeout.ms" : 300000,
  "maxOffsetsPerTrigger"     : 4000,
  "failOnDataLoss"           : True,
  "startingOffsets"          : "latest"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = (spark.readStream
    .format("kafka")
    .options(**KAFKA_OPTIONS)
    .load())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Generates the proper schema, so some sort of handshake happened between EVH and DBR&lt;H3&gt;However if I try to display my def.:&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;display(df)
java.util.concurrent.ExecutionException: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics ​&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Caused by: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 11:18:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/106893#M42626</guid>
      <dc:creator>Ivan_Pyrog</dc:creator>
      <dc:date>2025-01-24T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Event Hub throws Timeout Exceptio: Timed out waiting for a node assignment. Call: describe</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/107716#M42898</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145792"&gt;@Ivan_Pyrog&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;java.util.concurrent.ExecutionException: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics ​&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Caused by: kafkashaded.org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: describeTopics&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Looking at the above error it is seems that the above errors are occuring due to no network connectivity between Databricks and Kafka cluster. Please make sure that telnet or nc commands should be successful before trying to execute any code to Kafka cluster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;for example&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;%sh telnet&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;A href="https://b-2.scram.cxdevorderbrokerstron.r1jl38.c10.kafka.us-east-1.amazonaws.com/" target="_blank" rel="noopener"&gt;b-2.scram.cxdevorderbrokerstr&amp;lt;&amp;gt;xyz&amp;nbsp;&lt;/A&gt;&lt;/STRONG&gt;&lt;STRONG&gt;14002&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Also, make sure to enable SSL connections if Kafka cluster requires SSL connection. Please refer below link for SSL connection code snippet:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;[+]&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;&lt;A href="https://docs.databricks.com/en/structured-streaming/kafka.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/structured-streaming/kafka.html&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 07:55:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/107716#M42898</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2025-01-30T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Event Hub throws Timeout Exceptio: Timed out waiting for a node assignment. Call: describe</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/121996#M46617</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145792"&gt;@Ivan_Pyrog&lt;/a&gt;&amp;nbsp;what's the full error message as per the Spark Driver log and what is your Kafka Broker version? I suspect you may be actually be hitting an incompatible of client-server.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 14:00:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-event-hub-throws-timeout-exceptio-timed-out-waiting-for-a/m-p/121996#M46617</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2025-06-17T14:00:39Z</dc:date>
    </item>
  </channel>
</rss>

