<?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 Event Logging to DBFS creates only 0-byte .inprogress file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174089#M56797</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/232022"&gt;@Vamsi3757&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 0-byte appstatus_...inprogress file is expected - in Spark's rolling event log layout (eventlog_v2_...) it's only a status marker. The actual events go to events_N_&amp;lt;appId&amp;gt; files, and on DBFS those only become visible once the writer closes them, which happens at a 128 MB roll or a clean SparkContext stop; on a job cluster the driver is torn down at termination, so neither happens. Instead of spark.eventLog.dir, use compute log delivery, which ships the Spark event log to a UC volume for you.&lt;/P&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;P&gt;- Remove spark.eventLog.enabled / spark.eventLog.dir from the Spark config.&lt;/P&gt;&lt;P&gt;- Job compute &amp;gt; Advanced &amp;gt; Logging tab: destination Volumes, path e.g. /Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume&amp;gt;/cluster-logs. In a bundle/job JSON: "cluster_log_conf": {"volumes": {"destination": "/Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume&amp;gt;/cluster-logs"}}&lt;/P&gt;&lt;P&gt;- Grant the job's run-as service principal READ VOLUME and WRITE VOLUME on that volume. Dedicated access mode assigned to a user/SP is supported; dedicated assigned to a group is not.&lt;/P&gt;&lt;P&gt;Logs are delivered every 5 minutes until the compute terminates, under &amp;lt;path&amp;gt;/&amp;lt;cluster_id&amp;gt;/ with driver/, executor/ and eventlog/ folders. The event logs there are the standard JSON-lines format, so the Spark History Server or your own parser can read them.&lt;/P&gt;&lt;P&gt;Why /Volumes failed directly: Spark's event log writer keeps a file open and appends to it, which the volume path doesn't allow - hence Operation not permitted. Log delivery copies the files instead.&lt;/P&gt;&lt;P&gt;For cost optimization specifically, check whether system tables already cover you before parsing event logs: system.billing.usage, system.compute.node_timeline (per-node CPU/memory utilization) and system.lakeflow.job_run_timeline.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/compute/configure#compute-log-delivery" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/compute/configure#compute-log-delivery&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2026 19:59:13 GMT</pubDate>
    <dc:creator>SumeshKashyap</dc:creator>
    <dc:date>2026-10-20T19:59:13Z</dc:date>
    <item>
      <title>Spark Event Logging to DBFS creates only 0-byte .inprogress file</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174088#M56796</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I'm trying to capture Spark Event Logs for a Databricks cost optimization solution.&lt;/P&gt;&lt;P&gt;I configured my job cluster as follows:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;spark.eventLog.enabled=true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;spark.eventLog.dir=dbfs:/databricks/spark-events/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;The cluster starts successfully and I can see a folder being created:&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;dbfs:/databricks/spark-events/eventlog_v2_app-20261020180455-0000/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;However, the only file inside the folder is:&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;appstatus_app-20261020180455-0000.inprogress&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;with size:&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;0 bytes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;P&gt;The job completed successfully over an hour ago, but the file remains in the .inprogress state and no actual event log files are generated.&lt;/P&gt;&lt;P&gt;A few additional details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Databricks Runtime: 17.3.x-scala2.13&lt;/LI&gt;&lt;LI&gt;Access Mode: SINGLE_USER&lt;/LI&gt;&lt;LI&gt;Runtime Engine: STANDARD&lt;/LI&gt;&lt;LI&gt;Job runs using a Service Principal&lt;/LI&gt;&lt;LI&gt;Writing Spark event logs directly to a Unity Catalog Volume (/Volumes/...) fails with:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;SparkMisconfiguration: java.io.IOException: Operation not permitted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;SPAN&gt;DBFS path is accessible and the event log directory is created successfully.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Has anyone successfully configured Spark Event Logging on DBR 17.3 and observed only a 0-byte .inprogress file without any actual event log output? Are there any additional configurations required to persist Spark event logs in DBFS?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;Is there any supported way to store Spark Event Logs directly in a Unity Catalog Volume?&lt;P&gt;Thanks in advance for any guidance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Oct 2026 19:45:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174088#M56796</guid>
      <dc:creator>Vamsi3757</dc:creator>
      <dc:date>2026-10-20T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Event Logging to DBFS creates only 0-byte .inprogress file</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174089#M56797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/232022"&gt;@Vamsi3757&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 0-byte appstatus_...inprogress file is expected - in Spark's rolling event log layout (eventlog_v2_...) it's only a status marker. The actual events go to events_N_&amp;lt;appId&amp;gt; files, and on DBFS those only become visible once the writer closes them, which happens at a 128 MB roll or a clean SparkContext stop; on a job cluster the driver is torn down at termination, so neither happens. Instead of spark.eventLog.dir, use compute log delivery, which ships the Spark event log to a UC volume for you.&lt;/P&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;P&gt;- Remove spark.eventLog.enabled / spark.eventLog.dir from the Spark config.&lt;/P&gt;&lt;P&gt;- Job compute &amp;gt; Advanced &amp;gt; Logging tab: destination Volumes, path e.g. /Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume&amp;gt;/cluster-logs. In a bundle/job JSON: "cluster_log_conf": {"volumes": {"destination": "/Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume&amp;gt;/cluster-logs"}}&lt;/P&gt;&lt;P&gt;- Grant the job's run-as service principal READ VOLUME and WRITE VOLUME on that volume. Dedicated access mode assigned to a user/SP is supported; dedicated assigned to a group is not.&lt;/P&gt;&lt;P&gt;Logs are delivered every 5 minutes until the compute terminates, under &amp;lt;path&amp;gt;/&amp;lt;cluster_id&amp;gt;/ with driver/, executor/ and eventlog/ folders. The event logs there are the standard JSON-lines format, so the Spark History Server or your own parser can read them.&lt;/P&gt;&lt;P&gt;Why /Volumes failed directly: Spark's event log writer keeps a file open and appends to it, which the volume path doesn't allow - hence Operation not permitted. Log delivery copies the files instead.&lt;/P&gt;&lt;P&gt;For cost optimization specifically, check whether system tables already cover you before parsing event logs: system.billing.usage, system.compute.node_timeline (per-node CPU/memory utilization) and system.lakeflow.job_run_timeline.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/compute/configure#compute-log-delivery" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/compute/configure#compute-log-delivery&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2026 19:59:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174089#M56797</guid>
      <dc:creator>SumeshKashyap</dc:creator>
      <dc:date>2026-10-20T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Event Logging to DBFS creates only 0-byte .inprogress file</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174090#M56798</link>
      <description>&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Thanks for the explanation. Just to confirm, if I configure &lt;STRONG&gt;Compute Log Delivery&lt;/STRONG&gt; to a Unity Catalog Volume, will the event log/ folder contain the actual Spark Event Logs (jobs, stages, tasks, executor metrics, etc.) that can be parsed and analyzed, or does it only deliver driver/executor logs?&lt;/P&gt;&lt;P&gt;My goal is to analyze Spark Event Logs for a cost optimization use case, so I want to confirm that the logs delivered to the volume contain the full Spark event data and not just driver logs.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Oct 2026 20:06:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174090#M56798</guid>
      <dc:creator>Vamsi3757</dc:creator>
      <dc:date>2026-10-20T20:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Event Logging to DBFS creates only 0-byte .inprogress file</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174092#M56799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/232022"&gt;@Vamsi3757&lt;/a&gt; - yes, the eventlog/ folder holds the full Spark listener event log, the same JSON-lines stream the Spark UI / History Server is built from: job, stage and task start/end events with task metrics, executor added/removed, SQL execution events and so on. Driver stdout/stderr/log4j go to the separate driver/ folder.&lt;/P&gt;&lt;P&gt;Layout: &amp;lt;path&amp;gt;/&amp;lt;cluster_id&amp;gt;/eventlog/&amp;lt;cluster_id&amp;gt;_&amp;lt;driver_ip&amp;gt;/&amp;lt;id&amp;gt;/ with the current eventlog file plus rotated eventlog-&amp;lt;date&amp;gt;.gz files.&lt;/P&gt;&lt;P&gt;Quick check once a run has finished:&lt;/P&gt;&lt;P&gt;df = spark.read.json("/Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume&amp;gt;/cluster-logs/&amp;lt;cluster_id&amp;gt;/eventlog/*/*/eventlog*")&lt;/P&gt;&lt;P&gt;df.groupBy("Event").count().orderBy("count", ascending=False).show(truncate=False)&lt;/P&gt;&lt;P&gt;You should see SparkListenerTaskEnd, SparkListenerStageCompleted, SparkListenerJobEnd, SparkListenerExecutorAdded etc. (spark.read.json reads the .gz files directly). Task-level metrics such as Executor Run Time, Executor CPU Time, shuffle and spill bytes are in the Task Metrics struct on SparkListenerTaskEnd.&lt;/P&gt;&lt;P&gt;One tip for cost analysis: add spark.eventLog.logStageExecutorMetrics true to the cluster's Spark config. It's off by default and adds per-stage peak executor memory, which is what you need to judge whether executors are over-provisioned.&lt;/P&gt;&lt;P&gt;Hope this answer your doubts, if yes kindly mark this as answer so it is useful for other community members as well &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2026 20:19:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-event-logging-to-dbfs-creates-only-0-byte-inprogress-file/m-p/174092#M56799</guid>
      <dc:creator>SumeshKashyap</dc:creator>
      <dc:date>2026-10-20T20:19:00Z</dc:date>
    </item>
  </channel>
</rss>

