Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 08:05 PM
@Ron Barneveld :
To import all the catalog/schema/tables from the old Unity Catalog (UC) metastore to the new one, you can use the 'Export Metadata' and 'Import Metadata' functionalities provided by Databricks.
Here are the high-level steps to do this:
- Export metadata from the old metastore container to a file. You can do this using the databricks workspace export command in the Databricks CLI
databricks workspace export /FileStore/my-metadata-folder/metadata.json- Copy the exported file to a location that is accessible from the new Databricks workspace
- Import metadata from the exported file to the new metastore container. You can do this using the databricks workspace import command in the Databricks CLI. This command will import all the objects defined in the metadata file, including notebooks, libraries, and other artifacts. If you only want to import the catalog/schema/tables, you can filter the metadata file to include only the relevant objects before importing it
databricks workspace import /FileStore/my-metadata-folder/metadata.json- Verify that the catalog/schema/tables have been imported correctly by checking the Unity Catalog UI in the new Databricks workspace