databrickslabs / ucx

Automated migrations to Unity Catalog
Other
241 stars 87 forks source link

[FEATURE]: Add `create-ucx-catalog` to `assign-metastore` command #2737

Open JCZuurmond opened 2 months ago

JCZuurmond commented 2 months ago

Is there an existing issue for this?

Problem statement

Add create-ucx-catalog to assign-metastore command so that UCX catalog is setup when attaching the metastore.

Note: The this PR did an attempt of adding the create-ucx-catalog to the assign-metastore, however, [some redsign](#2507) is required to run workspace level commands within theAccountContext`

Proposed Solution

See above

Additional Context

No response

FastLee commented 2 months ago

Are we sure we want to do it at the same occasion. The challenge is that we recommend against setting a default storage location at the metastore, which means that we will have to provide a managed location at the catalog level. This will complicate an otherwise simple task.