cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
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
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
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)