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 II

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
Contributor III

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

 

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