# Hive Hive Connector

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/hive-connector/

Apache Hive is a data warehouse layer on Hadoop. Its metastore describes tables stored on a cluster, and HiveServer2 answers HiveQL queries over them.

The Qualytics Hive connector reads through the Hive JDBC driver, running its queries on HiveServer2. It discovers databases and tables in the Hive metastore, uses partition columns from the metastore to read large tables efficiently, and lets Qualytics profile tables, run scheduled scans, and surface record- and schema-level anomalies on the data already in your cluster.

> **Info: Two ways to connect to Hive**
>
> This page covers the **Hive** connector, which reads your data by running queries through HiveServer2. Qualytics also offers [Hive Native](https://userguide.qualytics.io/source-datastore/datastore/native/hive/deep-dive/introduction/), which reads file-based tables such as Parquet, ORC, delimited text, JSON, and Avro straight from their files and is considerably faster on large tables. Use this connector for anything Hive Native declines to read, such as views and transactional tables, and see [Choosing between the two Hive connectors](https://userguide.qualytics.io/source-datastore/datastore/native/hive/deep-dive/introduction/#notes) for a side-by-side comparison. Both can be connected against the same cluster.

> **Warning: Source only**
>
> Qualytics cannot write to Hive, so a Hive datastore cannot be an enrichment datastore. Link a datastore on another connector as its destination; see [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/).

---

## Notes

**Job queue and execution engine.** **Execution Engine** starts empty, which keeps the cluster's default engine. To run Qualytics' queries in a specific YARN queue, select **TEZ** or **MR** as the **Execution Engine** in the connection form, then set **Job Queue**, which appears once an engine is selected. The Qualytics user needs permission to submit to that queue.

**Ranger policies.** Ranger Hive policies, such as column masking and row filtering, are applied by HiveServer2, so they also apply to what Qualytics reads.

---

## Deep Dive

- **Authentication**

  Choose between Basic and Kerberos, and connect through ZooKeeper for HiveServer2 high availability.

  [Authentication](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/authentication/)
- **Network Access**

  The services and ports your Qualytics deployment must reach: HiveServer2, and the KDC or ZooKeeper when used.

  [Network Access](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/network-access/)
- **Permissions**

  The Hive privileges Qualytics needs to read your databases, with example `GRANT` statements.

  [Permissions](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/permissions/)

---

## How-tos

- **Add Source Datastore**

  Step-by-step UI walkthrough for adding Hive as a source datastore, with new or existing connections.

  [Add Source Datastore](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/how-tos/add-source/)
- **Create via API**

  REST and CLI payload examples for creating Hive source datastores, with Basic and Kerberos authentication.

  [Create via API](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/how-tos/api/)

---

## Reference

- **Troubleshooting**

  Common Hive connection errors and how to resolve them: credentials, Kerberos, privileges, or connectivity.

  [Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/jdbc/hive/troubleshooting/)

*Last updated: November 16, 2026.*
