04-14-2022 09:47 AM
I wanted to setup Autoloader to process files from Azure Data Lake (Blob) automatically whenever new files arrive. For this to work, I wanted to know if AutoLoader requires that the cluster is on all the time.
04-19-2022 12:16 AM
Hi @Venkata Ramakrishna Alvakonda , If your data only arrives every hour or every day, for example, you can run autoloader in batch mode by specifying the "trigger once" option and then setting up the notebook to run a scheduled job.
In "trigger once" mode, Autoloader still keeps track of new files even when there's not an active cluster running - it just waits to process until you rerun the AutoLoader code manually or as part of a scheduled job.
04-14-2022 03:43 PM
@Venkata Ramakrishna Alvakonda , No it is not required. Last position is stored in checkpoint file. New files are detected by directory listings or are stored in queue.
04-14-2022 07:02 PM
@Hubert Dudek , Thank you for your response. My question was: Does the cluster have to be on all the time to take advantage of Auto Loader? What happens if a file arrives in the blob storage and the cluster was down. Does it automatically start the cluster and then invoke the autoloader process to read the file? Or does the next time the cluster starts, it gets picked up?
04-19-2022 12:16 AM
Hi @Venkata Ramakrishna Alvakonda , If your data only arrives every hour or every day, for example, you can run autoloader in batch mode by specifying the "trigger once" option and then setting up the notebook to run a scheduled job.
In "trigger once" mode, Autoloader still keeps track of new files even when there's not an active cluster running - it just waits to process until you rerun the AutoLoader code manually or as part of a scheduled job.
04-19-2022 11:59 AM
Thanks @Kaniz Fatma for the response. Unfortunately I dont have a set frequency for the arrival of files. It is very adhoc. Let me ask you this question. Is it possible for event grid to trigger a Databricks job?
04-19-2022 12:31 PM
For sure you can try logic apps for triggering when something is in event grid and then notebook run.
11-05-2022 05:40 AM
@Kaniz Fatma , If my cluster is not active, and I have uploaded 50 files in storage location, then where this Auto Loader will list out these 50 files. Will it use any checkpoint location, if yes, then how can I set the checkpoint location in Cloud Storage for these new files identification? Can please tell me the backend process that is used to identifying these new files if my cluster is not active?
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.