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: 

databricks workspace import_dir not working without any failure message

ila-de
New Contributor III

Morning everyone!

I`m trying to copy from the repo into the databricks workspace all the notebooks. 

I`m using the command: databricks workspace import_dir . /Shared/Notebooks, it will just print all the info regarding the Workspace API.

If I launch databricks clusters list it will print all the clusters. It seems the issue is with all the command under databricks workspace... Have someone the same issue?

Thanks in advance for the support!

 

1 ACCEPTED SOLUTION

Accepted Solutions

ila-de
New Contributor III

Hi all,

I`ve disinstalled and installed again databricks-cli and now worked.

Is not a real solution but still it worked after one week...

View solution in original post

7 REPLIES 7

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @ila-de,

Could you please advise why version of databricks cli are you using?

databricks -v

Please try to upgrade the version to latest if it is not.

Can you try with: databricks workspace import-dir --overwrite $localDirectory $destinationNotebookDirectory

ila-de
New Contributor III

Hi Alberto,

thanks for your reply, I m using the latest 240, I also tried to install the old versions till 238 (once a time).

I ve tried: databricks workspace import-dir --overwrite $localDirectory $destinationNotebookDirectory

also with the - - overwrite at the end. But same result. 

ila-de
New Contributor III

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @ila-de,

Can you try using --debug option? and embedding a test file? 

Like this: 

databricks workspace import-dir test /Workspace/Users/ --debug

 

ila-de
New Contributor III

Hi @Alberto_Umana , I attach screenshot so you can see, I always have the same "output". It seems "databricks workspace" as command itself is not working

ilade_1-1739285105367.pngdatabricks -v

ilade_2-1739285345976.png

 

 

 

ila-de
New Contributor III

Hi @Alberto_Umana do you have please any suggestion?

ila-de
New Contributor III

Hi all,

I`ve disinstalled and installed again databricks-cli and now worked.

Is not a real solution but still it worked after one week...

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now