โ02-06-2023 02:03 AM
Currently, we are migrating from hive metastore to UC.
We have several dashboards and a huge number of queries whose catalogs have been set to hive_metastore and using <db>.<table> access pattern.
I'm just wondering if there's a way to switch catalogs of all queries in one go? Switching catalog of each query one by one needs tons of work. Also, it would be best if we can switch back and forth, so that we can make sure that everything looks correct.
โ03-01-2023 05:41 AM
Please see the link here.
This would be the setting to set on non-SQL Warehouse Databricks Clusters
spark.databricks.sql.initial.catalog.name
To change for the all of the SQL Warehouses in a workspace you would use:
databricks unity-catalog metastores assign --workspace-id 1234567890123456 \
--metastore-id 12a345b6-7890-1cd2-3456-e789f0a12b34 \
--default-catalog-name my_catalog
โ02-06-2023 06:08 AM
Hi, check this link, its documentation about UC and hive metastore
https://docs.databricks.com/data-governance/unity-catalog/hive-metastore.html#language-sql
โ02-06-2023 07:39 AM
Thank you. I did check the link.
I know that we can explicitly set the catalog name in a query. Anyway, my point is I don't want to manually edit each query one by one.
โ02-23-2023 01:47 AM
There is a configuration that you can use to define the default catalog and you can have as many sql endpoints as catalogs. It will makes your life much easier.
โ02-28-2023 11:33 PM
That sounds very promising.
Could you please pin point how to do that? Is there any document that I can follow?
โ03-01-2023 05:41 AM
Please see the link here.
This would be the setting to set on non-SQL Warehouse Databricks Clusters
spark.databricks.sql.initial.catalog.name
To change for the all of the SQL Warehouses in a workspace you would use:
databricks unity-catalog metastores assign --workspace-id 1234567890123456 \
--metastore-id 12a345b6-7890-1cd2-3456-e789f0a12b34 \
--default-catalog-name my_catalog
โ03-02-2023 01:35 AM
Thank you so much. The unity-catalog CLI is working for me
โ03-12-2024 11:24 PM
Absolutely accurate, in order to grow your business you need to create an image of your brand such that it is the first thing coming to customers mind when they think about a certain product or service thatโs where social media marketing agencies come in hand.
2 weeks ago
I have tired it i works.black friday deals
2 weeks ago
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