cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable DBFS storage

MaximeGendre
New Contributor III

Hello,
I administer a self-service oriented Databricks workspace and I notice that more and more users are storing their data in DBFS due to lack of knowledge.
They are not specifying a location when creating their schema or they are not specifying a schema at all.

To prevent them from doing so, I thought about adding a parameter in spark config : "spark.sql.warehouse.dir adl://forbidden ".

It works pretty well ... except when we add a location on a table.
Why it's trying to use "spark.sql.warehouse.dir" for that ?

MaximeGendre_1-1718227315313.png

Is there another way to block DBFS usage ?

PS : I know that Unity Catalog should solve this problem but it will deployed only in few months.

Thank you.

 

1 REPLY 1

MaximeGendre
New Contributor III

Replacing "/mnt/adl2" by "dbfs:/mnt/adl2" fixed the issue.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group