Databricks logging of SQL queries to DBFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 12:22 AM
Hi
Our costs has suddenly spiked due to logging of a lot of SQL query outputs to DBFS. We haven't made any changes to enable this. How can we disable this feature?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 03:37 AM
# Check current Spark configurations
spark.conf.get("spark.sql.queryExecutionListeners", "")
# Disable query logging
spark.conf.set("spark.sql.queryExecutionListeners", "")
or
GO to your cluster -> EDIT -> ADVANCED OPTION -> logging tab and set to none
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 07:44 AM
I don't get any output when running the following, I have the destination set to dbfs . But it was only supposed to be for cluster logs and not for query execution outputs to be stored in DBFS. Any idea if this is expected behavior.
spark.conf.get("spark.sql.queryExecutionListeners", "")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 05:44 AM
I would suggest to give a try by setting it to None and see if that helps. please share your findings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 11:49 PM
Hi @saurabh18cs ,
I believe setting it to none would resolve this issue.
Also can you please share all cluster configs using which you are running the SQL query?

