<?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 Delta Live Table Pipeline to EventHub in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101413#M8890</link>
    <description>&lt;P&gt;i want to read and load the data to eventhub. And there is an error message:&lt;SPAN&gt;org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 138.0 failed 4 times, most recent failure: Lost task 0.3 in stage 138.0 (TID 177) (10.139.64.4 executor driver): java.util.concurrent.CompletionException: com.microsoft.azure.eventhubs.OperationCancelledException: Entity(anomalydetection-eventhub): send failed while dispatching to Reactor, see cause for more details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Below is my code&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;pyspark.sql.functions&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to_json, struct&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;silver_data&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;spark.readStream.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"anomaydetection_processed.silver_clean_data"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;raw_connection_string&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dbutils.secrets.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;scope&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"anomalydetect-scope"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"connection-string-eventhub-send"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ehConf&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ehConf[&lt;/SPAN&gt;&lt;SPAN&gt;'eventhubs.connectionString'&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;spark._sc._jvm.org.apache.spark.eventhubs.EventHubsUtils.&lt;/SPAN&gt;&lt;SPAN&gt;encrypt&lt;/SPAN&gt;&lt;SPAN&gt;(raw_connection_string)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output_df&amp;nbsp;&lt;/SPA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t;SPAN&gt;"/mnt/anomalydetection2/presentation/eventhub_checkpoint"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metrics-infor.png" style="width: 482px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13400i222CC8A822EFB9E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="metrics-infor.png" alt="metrics-infor.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metrics-infor1.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13401i1D5DB5ACCEFC683C/image-size/large?v=v2&amp;amp;px=999" role="button" title="metrics-infor1.png" alt="metrics-infor1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 09 Dec 2024 07:11:04 GMT</pubDate>
    <dc:creator>NIK251</dc:creator>
    <dc:date>2024-12-09T07:11:04Z</dc:date>
    <item>
      <title>Delta Live Table Pipeline to EventHub</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101413#M8890</link>
      <description>&lt;P&gt;i want to read and load the data to eventhub. And there is an error message:&lt;SPAN&gt;org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 138.0 failed 4 times, most recent failure: Lost task 0.3 in stage 138.0 (TID 177) (10.139.64.4 executor driver): java.util.concurrent.CompletionException: com.microsoft.azure.eventhubs.OperationCancelledException: Entity(anomalydetection-eventhub): send failed while dispatching to Reactor, see cause for more details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Below is my code&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;pyspark.sql.functions&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to_json, struct&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;silver_data&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;spark.readStream.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"anomaydetection_processed.silver_clean_data"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;raw_connection_string&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dbutils.secrets.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;scope&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"anomalydetect-scope"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"connection-string-eventhub-send"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ehConf&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ehConf[&lt;/SPAN&gt;&lt;SPAN&gt;'eventhubs.connectionString'&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;spark._sc._jvm.org.apache.spark.eventhubs.EventHubsUtils.&lt;/SPAN&gt;&lt;SPAN&gt;encrypt&lt;/SPAN&gt;&lt;SPAN&gt;(raw_connection_string)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output_df&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;silver_data.&lt;/SPAN&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;to_json&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;struct&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"*"&lt;/SPAN&gt;&lt;SPAN&gt;)).&lt;/SPAN&gt;&lt;SPAN&gt;alias&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"body"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output_df.writeStream \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"eventhubs"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;**&lt;/SPAN&gt;&lt;SPAN&gt;ehConf) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;option&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"checkpointLocation"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"/mnt/anomalydetection2/presentation/eventhub_checkpoint"&lt;/SPAN&gt;&lt;SPAN&gt;) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metrics-infor.png" style="width: 482px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13400i222CC8A822EFB9E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="metrics-infor.png" alt="metrics-infor.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metrics-infor1.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13401i1D5DB5ACCEFC683C/image-size/large?v=v2&amp;amp;px=999" role="button" title="metrics-infor1.png" alt="metrics-infor1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Dec 2024 07:11:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101413#M8890</guid>
      <dc:creator>NIK251</dc:creator>
      <dc:date>2024-12-09T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Table Pipeline to EventHub</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101439#M8891</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error originates from the eventhub connector. Kindly check this with the EventHub Spark connector team.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please use the latest connector.&amp;nbsp;&lt;A href="https://github.com/Azure/azure-event-hubs-spark" target="_blank" rel="noopener noreferrer"&gt;https://github.com/Azure/azure-event-hubs-spark&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are known issues with the Event hub connector like below.&lt;BR /&gt;&lt;A href="https://github.com/Azure/azure-event-hubs-spark/issues/612#issuecomment-958098093" target="_blank" rel="noopener noreferrer"&gt;https://github.com/Azure/azure-event-hubs-spark/issues/612#issuecomment-958098093&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 09:01:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101439#M8891</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2024-12-09T09:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Table Pipeline to EventHub</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101468#M8892</link>
      <description>&lt;P&gt;Thanks for your response, i have checked that my cluster use the latest connector 2.3.22 and use the 15.4 LTS version. Are there any changes my error come from my cluster is in singlenode?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 12:58:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101468#M8892</guid>
      <dc:creator>NIK251</dc:creator>
      <dc:date>2024-12-09T12:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Table Pipeline to EventHub</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101469#M8893</link>
      <description>&lt;P&gt;can you try with shared/multinode cluster as well to see if that resolves the issue.&lt;/P&gt;
&lt;P&gt;I looked for similar tickets from other customers and most likely the issue is from eventhub.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 13:08:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101469#M8893</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2024-12-09T13:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Table Pipeline to EventHub</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101549#M8894</link>
      <description>&lt;P&gt;sorry for the inconvenience that i cant try with multi node cluster now. Are there another ways?&amp;nbsp;@@&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 07:01:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-live-table-pipeline-to-eventhub/m-p/101549#M8894</guid>
      <dc:creator>NIK251</dc:creator>
      <dc:date>2024-12-10T07:01:15Z</dc:date>
    </item>
  </channel>
</rss>

