<?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: Spark streaming autoloader slow second batch - checkpoint issues? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27364#M19238</link>
    <description>&lt;P&gt;@Drew Ringo​&amp;nbsp;, What's happening here is that the directory is so large and it's having to do a full scan on that second batch which takes time, which should be parallelized in DBR 9.1+. I think what you need is IncrementalListing in your directory. If you have not seen it, this part of our docs should help: &lt;A href="https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1" alt="https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1" target="_blank"&gt;https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I you could try cloudFiles.useIncrementalListing "true", and then manually specifying a backfill interval, like "1 day".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 16:39:24 GMT</pubDate>
    <dc:creator>Dan_Z</dc:creator>
    <dc:date>2022-05-04T16:39:24Z</dc:date>
    <item>
      <title>Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27354#M19228</link>
      <description>&lt;P&gt;I am running a massive history of about 250gb ~6mil phone call transcriptions (json read in as raw text) from a raw -&amp;gt; bronze pipeline in Azure Databricks using pyspark. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source is mounted storage and is continuously having files added and we do not delete/archive at the source. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Autoloader and Trigger Available Now. (see code below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is scaling well and I am able to process all the files given the current configuration in under 2 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trigger Available Now breaks up the massive history batch well for my cluster size. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I start running into issues when I kick off the stream again AFTER the history has completed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The microbatch execution log states that my latestOffset part of my trigger takes approximately 4,140,000 or 69 minutes just to get the offsets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once that insane offset time is finished the addBatch only takes a couple seconds to append to the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my cluster and configuration I can process around 1300 rec/sec until history (~6 mil files)  is completed but as soon as I start the second batch the stream gets caught up reading the latest offset and I process at less than 1 rec/sec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a multitude of configurations aimlessly to see if it solves the problem but no avail and there does not seem to be others with this issue so my last resort is posting here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to note is that based on the data I do not have a well balanced column to partition on and don't need one for down stream transformation so a solution with or without one will work for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the current configuration of the read and write streams....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;# Stream Read Function
&amp;nbsp;
def read_stream_raw(spark: SparkSession, rawPath: str) -&amp;gt; DataFrame:
  """Read a stream from a specified path
&amp;nbsp;
  Parameters
  ----------
  spark : SparkSession
      A spark session 
  rawPath : str
      path to directory of files
&amp;nbsp;
  Returns
  -------
  DataFrame
      a dataframe with one column "value" type str that contains raw data for each row in raw file
  """
  kafka_schema = "value STRING"
  return (
    spark
    .readStream
    .format("cloudFiles")
    .option("cloudFiles.format", "text")
    .option("wholetext", "true")
    .option("cloudFiles.maxBytesPerTrigger", "10g")
    .schema("value STRING")
    .load(rawPath)
  )
&amp;nbsp;
&amp;nbsp;
rawDF = read_stream_raw(spark, rawPath=landingPath)&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;# Transformation
&amp;nbsp;
def transform_raw_to_bronze(spark: SparkSession, bronze: DataFrame) -&amp;gt; DataFrame:
  """Read a stream from a specified path and tag some metadata
&amp;nbsp;
  Parameters
  ----------
  spark : SparkSession
      A spark session 
  bronze : DataFrame
      A spark df
&amp;nbsp;
  Returns
  -------
  DataFrame
      a dataframe with extra columns tagging more information
  """
  df = (
    bronze
    .select(
      lit("/my/cloud/storage").alias("datasource"),
      current_timestamp().alias("ingesttime"),
      "value",
      current_timestamp().cast("date").alias("ingestdate")
    )
    .withColumn("input_filename", input_file_name())
  )
  return df
&amp;nbsp;
&amp;nbsp;
bronzeDF = transform_raw_to_bronze(spark, rawDF)&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;def create_stream_writer(
    dataframe: DataFrame,
    checkpoint: str,
    name: str,
    partition_column: str = None,
    mode: str = "append",
) -&amp;gt; DataStreamWriter:
  """Write stream to specified path
&amp;nbsp;
  Parameters
  ----------
  dataframe: DataFrame
    A spark dataframe
  checkpoint: str
    unique checkpoint location
  name: str
    unique identifying name of the stream
  partition_column: str = None
    column to partition the stream by
  mode: str = "append"
    outout mode of the stream
&amp;nbsp;
  Returns
  -------
  StreamWriter
      an active stream
  """
  stream_writer = (
    dataframe
    .writeStream
    .format("delta")
    .outputMode(mode)
    .option("checkpointLocation", checkpoint)
    .queryName(name)
    .trigger(availableNow=True)
  )
&amp;nbsp;
  if partition_column is not None:
      return stream_writer.partitionBy(partition_column)
&amp;nbsp;
  return stream_writer
&amp;nbsp;
&amp;nbsp;
rawToBronzeWriter = create_stream_writer(
  dataframe=bronzeDF,
  checkpoint=bronzeCheckpoint, 
  mode="append", 
  name="rawToBronze"
)
&amp;nbsp;
stream = rawToBronzeWriter.start(bronzePath)
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 02:39:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27354#M19228</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-02-23T02:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27356#M19230</link>
      <description>&lt;P&gt;Hi @Drew Ringo​&amp;nbsp;, Based on your input, I am assuming that your file directory is huge, in this case I think you can try with &lt;B&gt;option("cloudFiles.useNotifications" , "true")  &lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 10:48:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27356#M19230</guid>
      <dc:creator>RKNutalapati</dc:creator>
      <dc:date>2022-02-23T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27357#M19231</link>
      <description>&lt;P&gt;Your assumption is correct. The file directory is huge and will only get bigger. Using &lt;B&gt;option("cloudFiles.useNotifications" , "true") &lt;/B&gt;I will have to configure the Azure Event Grid and Queue storage based on the documentation located here correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/databricks/spark/latest/structured-streaming/auto-loader-gen2" alt="https://docs.microsoft.com/en-us/azure/databricks/spark/latest/structured-streaming/auto-loader-gen2" target="_blank"&gt;Load files from Azure Data Lake Storage Gen2 (ADLS Gen2) using Auto Loader - Azure Databricks | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:41:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27357#M19231</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-02-23T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27358#M19232</link>
      <description>&lt;P&gt;Hi  @Drew Ringo​&amp;nbsp;, I am not that familiar with Azure. But yes by looking into the below nice article. I think some configurations need to be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://chinnychukwudozie.com/2020/09/30/incrementally-process-data-lake-files-using-azure-databricks-autoloader-and-spark-structured-streaming-api/" target="test_blank"&gt;https://chinnychukwudozie.com/2020/09/30/incrementally-process-data-lake-files-using-azure-databricks-autoloader-and-spark-structured-streaming-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be people from Azure better comment on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:17:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27358#M19232</guid>
      <dc:creator>RKNutalapati</dc:creator>
      <dc:date>2022-02-23T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27359#M19233</link>
      <description>&lt;P&gt;Thank you for this. I am working with others now to make sure I have the correct permissions to configure this based on the article and the Azure documentation. Once implemented and tested I will respond.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 15:47:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27359#M19233</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-02-23T15:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27360#M19234</link>
      <description>&lt;P&gt;I agree with drewster, it does appear to be a listing problem.  Notifications will perform better at scale.  Without the notification, it has to get the full list of files and compare it to the already processed list and that's what's taking a long time.  &lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 00:17:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27360#M19234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-24T00:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27361#M19235</link>
      <description>&lt;P&gt;Hello again @Joseph Kambourakis​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working with my Cloud Engineer and the service principal and permissions are all set up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new configuration looks like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def read_stream_raw(spark: SparkSession, rawPath: str) -&amp;gt; DataFrame:
  """Read a stream from a specified path
&amp;nbsp;
  Parameters
  ----------
  spark : SparkSession
      A spark session 
  rawPath : str
      path to directory of files
&amp;nbsp;
  Returns
  -------
  DataFrame
      a dataframe with one column "value" type str that contains raw data for each row in raw file
  """
  kafka_schema = "value STRING"
  return (
    spark
    .readStream
    .format("cloudFiles")
    .option("cloudFiles.format", "text")
    .option("wholetext", "true")
    .option("cloudFiles.maxBytesPerTrigger", "10g")
    .option("cloudFiles.validateOptions", "true")
    .option("cloudFiles.useNotifications", "true")
    .option("cloudFiles.clientId", "id")
    .option("cloudFiles.clientSecret", "secret)
    .option("cloudFiles.resourceGroup", "rg")
    .option("cloudFiles.subscriptionId", "subId")
    .option("cloudFiles.tenantId", "tenId")
    .schema("value STRING")
    .load(rawPath)
  )
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The rest of the configuration is the same as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am not using a connection string per the documentation because I am on Databricks runtime 10.3 where connection strings are not necessary after 8.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting this error... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ERROR MicroBatchExecution: Query rawToBronze [id = 93e1fcd7-6529-4ba0-a694-be9e67239ae1, runId = c91c00b3-0c53-43cd-8742-0a7f99c5e832] terminated with error
com.microsoft.azure.storage.StorageException: 
....
Caused by: java.net.UnknownHostException: exampleAccount.queue.core.windows.net
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our assumptions were that the Queue would automatically get set up without a connection string given the correct Service Principal configuration and a Databricks runtime &amp;gt; 8.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? I am continuing to trouble shoot and will test a more primitive version on a databricks runtime &amp;lt; 8.1 with a connection string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of the above outcome I need to be on runtime &amp;gt;10.2 for the AvailableNow Trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please any thoughts/directions would be incredibly beneficial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: I got the same error on Databricks runtime 7.3 where the connection string is required to configure autoloader. The only change I needed to make in the setup besides the runtime is change the trigger type because Once &amp;amp; AvailableNow didn't exist in runtime 7.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 15:44:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27361#M19235</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-02-24T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27362#M19236</link>
      <description>&lt;P&gt;UPDATE @Joseph Kambourakis​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that we have found that ADLS Gen2 Premium storage does not support Queue storage. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore the Autoloader fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Cloud Engineer stood up a standard tier storage in ADLS Gen2 and I was able to connect to it and run Autloader with the same exact configurations that initially caused it to fail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure who to ask/inform about this finding as it is not in any documentation to my knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully we can get this info out there and figure out some next steps if our assumptions are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 22:22:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27362#M19236</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-02-24T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27364#M19238</link>
      <description>&lt;P&gt;@Drew Ringo​&amp;nbsp;, What's happening here is that the directory is so large and it's having to do a full scan on that second batch which takes time, which should be parallelized in DBR 9.1+. I think what you need is IncrementalListing in your directory. If you have not seen it, this part of our docs should help: &lt;A href="https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1" alt="https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1" target="_blank"&gt;https://docs.databricks.com/spark/latest/structured-streaming/auto-loader.html#incremental-listing-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I you could try cloudFiles.useIncrementalListing "true", and then manually specifying a backfill interval, like "1 day".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:39:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27364#M19238</guid>
      <dc:creator>Dan_Z</dc:creator>
      <dc:date>2022-05-04T16:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27366#M19240</link>
      <description>&lt;P&gt;@Dan Zafar​&amp;nbsp;@Kaniz Fatma​&amp;nbsp;I will be trying the recommendation by @Dan Zafar​&amp;nbsp;today. &lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 13:04:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27366#M19240</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-05-18T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27367#M19241</link>
      <description>&lt;P&gt;Hi @Drew Ringo​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did you have time to try Dan's recommendations? do you still need help or this recommendation helped? please let us know. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 16:33:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27367#M19241</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-06-07T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27368#M19242</link>
      <description>&lt;P&gt;I just tested it out and my stream initialization times seem to have gone down. Can someone explain the backfill interval?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the documentation located &lt;A href="https://docs.databricks.com/ingestion/auto-loader/options.html" alt="https://docs.databricks.com/ingestion/auto-loader/options.html" target="_blank"&gt;here&lt;/A&gt; its sounds like the backfill is almost like a full directory list at a given interval to make sure that all files have been processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this true? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is true then that would imply that the option is not used unless the auto loader is configured for event notification services right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I let it run for a little while after re starting the stream recs/sec tanked. I went from ~180 rec/esc to ~30 rec/sec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have auto compaction and auto optimization turned on as well because I dont have a partitioning column that lets me create balanced partitions. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 18:56:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27368#M19242</guid>
      <dc:creator>drewster</dc:creator>
      <dc:date>2022-06-08T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27369#M19243</link>
      <description>&lt;P&gt;I'm having a very similar issue, the backfill option from the documentation will check the file paths vs the meta data in checkpoints to see if everything has been read. By default backfills seem to be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i'm having is that incremental directory listing just hangs, or takes forever to run post the initial write, and even if you use event notifications which seem to be really fast for updates, they don't provide 100% delivery guarantees, meaning that backfills will need to be ran often... But then we come back to the initial problem of having to do directory listing against potentially a massive directory for the backfills&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:13:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27369#M19243</guid>
      <dc:creator>AndriusVitkausk</dc:creator>
      <dc:date>2022-06-14T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spark streaming autoloader slow second batch - checkpoint issues?</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27371#M19245</link>
      <description>&lt;P&gt;Thank you for the explanation.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 12:29:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-autoloader-slow-second-batch-checkpoint-issues/m-p/27371#M19245</guid>
      <dc:creator>Brooksjit</dc:creator>
      <dc:date>2022-06-25T12:29:28Z</dc:date>
    </item>
  </channel>
</rss>

