Hive Gen2 OCF Connector: Overview

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

Customer Managed Applies to customer-managed instances of Alation

Core Connector Core connectors are included with all Alation platform tiers (subject to each tier’s connector limits) and are fully supported by Alation.

You can install and upgrade the connector using one of the following methods, depending on your Alation deployment type:

  • On-premise instances: Download the latest connector package from the Alation Customer Portal (Customer Portal > Connectors), then upload and install it in Alation.

  • Alation Cloud Service: Install and upgrade the connector directly from your instance without downloading the package. Any connector available on the Alation Customer Portal (Customer Portal > Connectors) can be installed and upgraded this way. See Install Connectors (Cloud-Native Architecture). You can also download the connector package from the Alation Customer Portal and install or upgrade it manually by uploading the Zip file.

The connector catalogs Hive as a data source on your Alation customer-managed and Cloud Service instances. It connects to HiveServer2 over JDBC using the CData JDBC Driver for Apache Hive, and extracts and catalogs database objects such as schemas, tables, views, and columns. After metadata extraction, the connector represents Hive in the data catalog as a hierarchy of catalog pages under the data source. You can leverage the full catalog functionality to search for the extracted metadata, curate the corresponding catalog pages, create documentation about the data source, and exchange information about it.

Note

The Hive Gen2 OCF connector is separate from the existing Hive OCF connector. It uses its own connector package and data source type, connecting directly to HiveServer2 over JDBC via a commercial CData driver instead of the Alation Hive Adaptor (AHA) subprocess.

Installing the Hive Gen2 OCF connector does not upgrade or replace an existing Hive OCF data source, and both connectors can run side by side. For supported Hive versions, see Support Matrices.

Team

You may need the assistance of your Hive administrator to configure this data source.

  • Alation administrator:

    • Ensures that Alation Connector Manager is installed and running or installs it.

    • Installs the OCF connector.

    • Creates and configures the Hive data source in the catalog.

    • Performs initial extraction and prepares the data source for Alation users.

  • Hive administrator:

    • Creates a service account for Alation and provides access to metadata.

    • Provides the JDBC URI.

    • Provides the SSL truststore.

Scope

The table below describes which metadata objects are extracted by this connector and which operations are supported.

The Hive Gen2 OCF connector connects to HiveServer2 directly over JDBC through the CData JDBC Driver for Apache Hive. Its capabilities do not vary by Hadoop distribution (CDH, EMR, HDP, MapR, Azure HDInsight, and so on); the table below applies uniformly to any Apache Hive deployment reachable over HiveServer2.

Capability

Apache Hive (JDBC)

Authentication

Basic

Yes

Kerberos with password

Yes

Kerberos with keytab

Yes

SSL (JKS truststore)

Yes

Metadata extraction (default MDE)

Data source

Yes

Schema

Yes

Table

Yes

View

Yes

Column

Yes

Table Extraction

Yes

Sampling and profiling

Table sampling

Yes

Column sampling

Yes

Custom query-based sampling

Yes

Query log ingestion

SQL-based (operator-configured query)

Yes

Compose

SQL editor

Yes

Note

Query log ingestion in this connector runs a SQL query that you configure against the cluster’s query-history source. See Configure Query Log Ingestion.

Limitations

  1. For large catalogs (100,000 or more tables), metadata extraction (MDE) can take several hours, and connector memory usage scales linearly with the number of processed objects. Because this is expected behavior, allocate sufficient container memory and adjust your extraction schedule accordingly. To reduce runtimes and resource consumption, use scoped or incremental extraction.

  2. In the Hive Gen2 connector, metadata extraction always runs over a single JDBC connection.

  3. Query log ingestion depends entirely on the SQL query you configure for it. If you leave that query empty, or it targets the wrong source or is otherwise incorrect for your Hive deployment, query log ingestion silently returns no useful results instead of raising an error.

Note

For how Hive’s Struct complex data type is represented in the Alation catalog, see Struct Data Type. This catalog-page behavior is the same for both the Hive OCF connector and the Hive Gen2 OCF connector.