-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically assign a UC Metastore to a workspace #341
Labels
feat/account-level
cross-workspace installations
feat/migration-index
mapping of databases to catalog or potentially other databases
good first issue
Good for newcomers
step/assign metastore
go/uc/upgrade Assign Metastore
Comments
nfx
added
enhancement
New feature or request
feat/account-level
cross-workspace installations
step/assign metastore
go/uc/upgrade Assign Metastore
labels
Sep 29, 2023
Please note that quite often there might be several metastores in one region. It's not a recommended setup but it exists in some particular cases. |
@renardeinside can you elaborate on the reasoning behind that? |
@zpappa the CLI naming convention will be |
nfx
added
the
feat/migration-index
mapping of databases to catalog or potentially other databases
label
Oct 2, 2023
nfx
added
good first issue
Good for newcomers
and removed
enhancement
New feature or request
labels
Apr 15, 2024
This was referenced Apr 22, 2024
7 tasks
nfx
pushed a commit
that referenced
this issue
Apr 22, 2024
## Changes - Add commands related to metastores handling ### Linked issues <!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved. See https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> Resolves #341 ### Functionality - [x] added relevant user documentation - [x] added new CLI command - [x] `databricks labs ucx assign-metastore` automatically assigns a metastore when possible to a specified workspace - [x] `databricks labs ucx show-all-metastores` shows all possible metastores to be assigned to a workspace ### Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] manually tested - [x] added unit tests - [ ] verified on staging environment (screenshot attached)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feat/account-level
cross-workspace installations
feat/migration-index
mapping of databases to catalog or potentially other databases
good first issue
Good for newcomers
step/assign metastore
go/uc/upgrade Assign Metastore
Background
Assign metastore to a workspace automatically.
Operational Considerations
If more than one metastore exists in a region, which is uncommon but exists for certain preview customers or for customers who were granted exceptions due to legal entity differences, specific legislative or regulation oversight, etc, we need to provide a way for the user to default their metastore choice.
Add
default_catalog
to configurationTODO:
Process flow
The user opts to assign a workspace by making a selective action in the CLI.
Before they continue, there is an optional step to list the metastores available in their region.
e.g.
databricks labs ucx show_all_metastores <workspace_id>
Resulting action
Metastore information for the given region, specifically name and ID.
e.g
databricks labs ucx assign_metastore <workspace_id>
Resulting action
Metastore is assigned to this workspace, default catalog is the workspace catalog
e.g
databricks labs ucx assign_metastore <workspace_id> --default_catalog=main
Resulting action
Metastore is assigned to this workspace and the default catalog is set to main
For customers that have multiple metastores in a region:
e.g.
databricks labs ucx assign_metastore <workspace_id> --default_catalog=main --use_metastore_id=<metastore_id
Resulting action
The specific metastore is assigned to this workspace.
The text was updated successfully, but these errors were encountered: