CLI is not helpful in exporting Error: expected to have the absolute path of the object or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 02:02 AM
I try to export a job as a DBA in order to create an Asset Bundle according to this
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.
- Labels:
-
Data Engineering
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 02:47 AM
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 11:07 PM
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