<?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 Custom application log files copy fails in Shared Unity Catalog Cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/custom-application-log-files-copy-fails-in-shared-unity-catalog/m-p/4177#M975</link>
    <description>&lt;P&gt;We have a use case of implementing custom logging framework for capturing the various details while executing a notebook. At the end of the notebook, the log file gets copied from driver's /tmp folder into Data lake Storage's container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this process works perfectly in normal all purpose clusters, it has been failing ever since we moved on to Shared Unity Catalog cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this below code to copy the file into ABFSS path. A separate external location has also been defined for the purpose of log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils.fs.cp("file:"+log_file_path, "abfss://application-logs@&amp;lt;storageaccount&amp;gt;.dfs.core.windows.net/adb" + date_folders + log_file_name, True)&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 21:36:54 GMT</pubDate>
    <dc:creator>rk_db</dc:creator>
    <dc:date>2023-05-18T21:36:54Z</dc:date>
    <item>
      <title>Custom application log files copy fails in Shared Unity Catalog Cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-application-log-files-copy-fails-in-shared-unity-catalog/m-p/4177#M975</link>
      <description>&lt;P&gt;We have a use case of implementing custom logging framework for capturing the various details while executing a notebook. At the end of the notebook, the log file gets copied from driver's /tmp folder into Data lake Storage's container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this process works perfectly in normal all purpose clusters, it has been failing ever since we moved on to Shared Unity Catalog cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this below code to copy the file into ABFSS path. A separate external location has also been defined for the purpose of log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbutils.fs.cp("file:"+log_file_path, "abfss://application-logs@&amp;lt;storageaccount&amp;gt;.dfs.core.windows.net/adb" + date_folders + log_file_name, True)&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 21:36:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-application-log-files-copy-fails-in-shared-unity-catalog/m-p/4177#M975</guid>
      <dc:creator>rk_db</dc:creator>
      <dc:date>2023-05-18T21:36:54Z</dc:date>
    </item>
  </channel>
</rss>

