cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to hive metastore as well as glue catalog at the sametime

RC
Contributor

Hi,

Is there any way we can connect glue catalog as well as to hive metastore in the same warehouse?

I can create a single instance profile and provide all the required access for buckets or for glue catalog.

I tried with the below configuration,

spark.sql.hive.metastore.version 3.1.0
spark.sql.hive.metastore.jars maven
spark.hadoop.hive.metastore.uris thrift://<HIVE IP>:9083
spark.databricks.hive.metastore.glueCatalog.enabled true

It is somehow picking up the glue catalog.

Any suggestions are highly appreciated 

BR,

Rajath

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz_Fatma
Community Manager
Community Manager

Hi @RCBased on the provided information, you cannot dynamically switch between Glue Catalog and a Hive metastore in the same warehouse.

As per the limitations mentioned in the AWS Glue metastore documentation, you must restart the cluster for new Spark configurations to take effect. 

Here is the relevant excerpt from the source:


- "You cannot dynamically switch between Glue Catalog and a Hive metastore. You must restart the cluster for new Spark configurations to take effect.

So, if you want to connect to Glue Catalog and Hive metastore, you would have to restart your cluster whenever you want to switch between the two.

Sources:
- [Docs: aws-glue-metastore](https://docs.databricks.com/archive/external-metastores/aws-glue-metastore.html)

View solution in original post

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @RCBased on the provided information, you cannot dynamically switch between Glue Catalog and a Hive metastore in the same warehouse.

As per the limitations mentioned in the AWS Glue metastore documentation, you must restart the cluster for new Spark configurations to take effect. 

Here is the relevant excerpt from the source:


- "You cannot dynamically switch between Glue Catalog and a Hive metastore. You must restart the cluster for new Spark configurations to take effect.

So, if you want to connect to Glue Catalog and Hive metastore, you would have to restart your cluster whenever you want to switch between the two.

Sources:
- [Docs: aws-glue-metastore](https://docs.databricks.com/archive/external-metastores/aws-glue-metastore.html)

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!