cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to change the feature store delta table default path on DBFS?

Saeid_H
Contributor

Hi everyone,

Would it be possible to change the default storage path of deature store, during creation and/or after creation? If you could also provide the python script to that I would appreciate. The current default path is:

"dbfs/user/hive/warehouse/<feature database name>/<feature table name>โ€

With many thanks in advance! ๐Ÿ™‚

5 REPLIES 5

Saeid_H
Contributor

I found the solution, but there is still one question remained unanswered, which is, how to change the directory after creating FS. To change the default path, all is needed to set the path argument in

fs = feature_store.FeatureStoreClient()
fs.create_table(name= '', primary_keys = [], .., path = "user given path")
                             

Anonymous
Not applicable

The config you're looking for is "spark.sql.warehouse.dir"

Here is the documentation

@Saeid Hedayatiโ€‹ is correct that you can set the path when creating the feature store. It's an optional parameter listed here.

Once the table is created, you can't change the path because it's got all the files in it. You can potentially clone the table but migration would require moving all the files.

Saeid_H
Contributor

@Joseph Kambourakisโ€‹  thank you for your response.

Anonymous
Not applicable

No problem. Glad I could help!

Anonymous
Not applicable

Hi @Saeid Hedayatiโ€‹ 

Hope everything is going great.

Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you. 

Cheers!

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