cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

need to move notebook file from workspace to dbfs.

test_data
New Contributor III

Hi team

i need to move the notebook file from workspace to dbfs. i have tried and getting an error there is no file ?

4 REPLIES 4

Kaniz
Community Manager
Community Manager

Hi @ test_data! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.

Kaniz
Community Manager
Community Manager

Hi @sherbin w​ , Can you post the error stack here?

To move a file in databricks notebook, you can use dbutils.

Screenshot 2021-12-18 at 1.55.23 PM

test_data
New Contributor III

@Kaniz Fatma​  ok thanks how we can move our worksspace file to DBFS

i want to move test_data file to DBFS

image

Hubert-Dudek
Esteemed Contributor III

Not sure what command are you using and what is error?

As access to workspace is managed per user on databricks so %sh magic commands will not work as you could see other user files.

Dbfs is data storage. Notebook code from Workspace can be moved to Repos (git repository) or can be exported to file using File->export in notebook or via API.

Welcome to Databricks Community: Lets learn, network and celebrate together

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.