> For the complete documentation index, see [llms.txt](https://documentation.immuta.com/2024.3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.immuta.com/2024.3/integrations/databricks-spark/how-to-guides/external-metastores.md).

# External Metastores

## Local or remote mode

Immuta supports the use of external metastores in [local or remote mode](https://docs.databricks.com/data/metastores/external-hive-metastore.html#hive-metastore-deployment-modes) , following the same configuration detailed in the [Databricks documentation](https://docs.databricks.com/data/metastores/external-hive-metastore.html).

## Configure external Hive metastore

Download the metastore jars and point to them as specified in [Databricks documentation](https://docs.databricks.com/data/metastores/external-hive-metastore.html#download-the-metastore-jars-and-point-to-them). Metastore jars must end up on the cluster's local disk at this explicit path: `/databricks/hive_metastore_jars`.

If using DBR 7.x with Hive 2.3.x, either

* Set `spark.sql.hive.metastore.version` to `2.3.7` and `spark.sql.hive.metastore.jars` to `builtin` or
* Download the metastore jars and set `spark.sql.hive.metastore.jars` to `/databricks/hive_metastore_jars/*` as before.

## Configure AWS Glue Data Catalog

To use AWS Glue Data Catalog as the metastore for Databricks, see the [Databricks documentation](https://docs.databricks.com/data/metastores/aws-glue-metastore.html).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/2024.3/integrations/databricks-spark/how-to-guides/external-metastores.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
