<?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: dataframe checkpoint when checkpoint location on abfss in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dataframe-checkpoint-when-checkpoint-location-on-abfss/m-p/101309#M40628</link>
    <description>&lt;P&gt;In DBFS, the checkpoint directory is automatically created when you set it using spark.sparkContext.setCheckpointDir(checkpoint_dir). This means that you do not need to explicitly create the directory beforehand using dbutils.fs.mkdirs(checkpoint_dir).&lt;/P&gt;
&lt;P&gt;However, when using ABFSS, the directory does not get created automatically. You need to explicitly create the checkpoint directory using dbutils.fs.mkdirs(checkpoint_dir) before setting it with spark.sparkContext.setCheckpointDir(checkpoint_dir). This ensures that the directory exists and is accessible, which is why including dbutils.fs.mkdirs(checkpoint_dir) in the same cell is necessary for ABFSS but not for DBFS.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Dec 2024 06:31:51 GMT</pubDate>
    <dc:creator>Mounika_Tarigop</dc:creator>
    <dc:date>2024-12-07T06:31:51Z</dc:date>
    <item>
      <title>dataframe checkpoint when checkpoint location on abfss</title>
      <link>https://community.databricks.com/t5/data-engineering/dataframe-checkpoint-when-checkpoint-location-on-abfss/m-p/82402#M36637</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;I'm trying to switch checkpoint locations from dbfs to abfss and i have noticed the following behaviour.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;spark.sparkContext.setCheckpointDir&lt;/STRONG&gt; will fail unless I call...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dbutils.fs.mkdirs(checkpoint_dir)&lt;/STRONG&gt; in the same cell.&lt;/P&gt;&lt;P&gt;On top of this, the &lt;STRONG&gt;df = df.checkpoint(True)&lt;/STRONG&gt; will fail, unless I run &lt;STRONG&gt;dbutils.fs.mkdirs(checkpoint_dir)&lt;/STRONG&gt; in the same cell.&lt;BR /&gt;In both cases the error message is&lt;/P&gt;&lt;P&gt;Invalid configuration value detected for fs.azure.account.keyInvalid configuration value detected for fs.azure.account.key&lt;/P&gt;&lt;P&gt;if i include all three of the above in one cell and in the following order, it works&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dbutils.fs.mkdirs(checkpoint_dir)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;spark.sparkContext.setCheckpointDir(checkpoint_dir)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;df = spark.table("cat.sch.tbl").checkpoint(True)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is different behavior as compared to dbfs checkpoint locations&lt;/P&gt;&lt;P&gt;any one have any ideas?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:48:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dataframe-checkpoint-when-checkpoint-location-on-abfss/m-p/82402#M36637</guid>
      <dc:creator>Leigh_Turner</dc:creator>
      <dc:date>2024-08-08T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe checkpoint when checkpoint location on abfss</title>
      <link>https://community.databricks.com/t5/data-engineering/dataframe-checkpoint-when-checkpoint-location-on-abfss/m-p/101309#M40628</link>
      <description>&lt;P&gt;In DBFS, the checkpoint directory is automatically created when you set it using spark.sparkContext.setCheckpointDir(checkpoint_dir). This means that you do not need to explicitly create the directory beforehand using dbutils.fs.mkdirs(checkpoint_dir).&lt;/P&gt;
&lt;P&gt;However, when using ABFSS, the directory does not get created automatically. You need to explicitly create the checkpoint directory using dbutils.fs.mkdirs(checkpoint_dir) before setting it with spark.sparkContext.setCheckpointDir(checkpoint_dir). This ensures that the directory exists and is accessible, which is why including dbutils.fs.mkdirs(checkpoint_dir) in the same cell is necessary for ABFSS but not for DBFS.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 06:31:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dataframe-checkpoint-when-checkpoint-location-on-abfss/m-p/101309#M40628</guid>
      <dc:creator>Mounika_Tarigop</dc:creator>
      <dc:date>2024-12-07T06:31:51Z</dc:date>
    </item>
  </channel>
</rss>

