<?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 Unable to log metrics to table/driver using spark StreamingQueryListener in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/unable-to-log-metrics-to-table-driver-using-spark/m-p/53942#M1869</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Hope everyone is enjoying their holiday time.&lt;/P&gt;&lt;P&gt;I have spark streaming job (copy activity from location A to location B) and a Query Listener and attached to the streaming job.&lt;/P&gt;&lt;P&gt;As mentioned over the attachments I can see&amp;nbsp;numInputRows gets logged to driver logs. But I can't write the&amp;nbsp;finaldf to delta table and even can't log the dataframe to driver logs when I do "show".&lt;/P&gt;&lt;P&gt;I remember the same piece code used to work on earlier versions may be at spark 3.* which was an year back.&lt;/P&gt;&lt;P&gt;Please let me know if I am doing something wrong or suggest me if changes required.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harish Koduru&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 11:40:44 GMT</pubDate>
    <dc:creator>harry546</dc:creator>
    <dc:date>2023-11-27T11:40:44Z</dc:date>
    <item>
      <title>Unable to log metrics to table/driver using spark StreamingQueryListener</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-log-metrics-to-table-driver-using-spark/m-p/53942#M1869</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Hope everyone is enjoying their holiday time.&lt;/P&gt;&lt;P&gt;I have spark streaming job (copy activity from location A to location B) and a Query Listener and attached to the streaming job.&lt;/P&gt;&lt;P&gt;As mentioned over the attachments I can see&amp;nbsp;numInputRows gets logged to driver logs. But I can't write the&amp;nbsp;finaldf to delta table and even can't log the dataframe to driver logs when I do "show".&lt;/P&gt;&lt;P&gt;I remember the same piece code used to work on earlier versions may be at spark 3.* which was an year back.&lt;/P&gt;&lt;P&gt;Please let me know if I am doing something wrong or suggest me if changes required.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Harish Koduru&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 11:40:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-log-metrics-to-table-driver-using-spark/m-p/53942#M1869</guid>
      <dc:creator>harry546</dc:creator>
      <dc:date>2023-11-27T11:40:44Z</dc:date>
    </item>
  </channel>
</rss>

