cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

CLI is not helpful in exporting Error: expected to have the absolute path of the object or directory

vanagnostopoulo
New Contributor III

I try to export a job as a DBA in order to create an Asset Bundle according to this

https://community.databricks.com/t5/data-engineering/databricks-asset-bundle-dab-from-existing-works...

I am on Windows 10 Pro x64 withDatabricks CLI v0.223.1

The command is

databricks workspace export --file "c:/mydba" --format DBC --output json -p DEFAULT

But I get

"Error: expected to have the absolute path of the object or directory"

How is this supposed to work? The folder exists.

2 REPLIES 2

Witold
Honored Contributor

Yes, the error message is not very meaningful. I believe it's the way how you need to pass the absolute path on windows system. Can you try these approaches?

--file "c:\\mydba"
* --file "c:\mydba"

artsheiko
Databricks Employee
Databricks Employee

To export an existing folder under /Workspace/... export-dir command could be used : 

databricks workspace export-dir /Workspace/Applications/ucx/logs/migrate-tables/run-123-0/ /Users/artem.sheiko/logs

 

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