Prerequisites

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.

Before you set up the connector, complete the tasks in this section.

Configure Network Connectivity

Open the ports that apply to your Hive configuration:

  • Port 10000 to the HiveServer2 server (the default HiveServer2 Thrift port; this may vary depending on your cluster’s hive.server2.thrift.port setting).

If using Kerberos authentication:

  • TCP/UDP port 88 to the Kerberos Distribution Center (KDC). The connector reads the KDC host and realm for this connection from the uploaded krb5.conf file, not from a separate network setting.

Note

This connector connects to HiveServer2 directly over JDBC. It does not connect separately to the Hive Metastore (port 9083) or to WebHDFS/HttpFS (ports 50070, 9870, or 14000), so you do not need to open those ports.

Create a Service Account

We recommend creating a Hive service account for Alation before adding the Hive Gen2 data source to the catalog. All operations use the same JDBC credentials configured for this service account; there is no separate credential path for any operation.

Operation

Required Permission

Test Connection

Connect to HiveServer2 on the configured port.

Metadata Extraction (MDE)

Read access to the Hive Metastore (via JDBC DatabaseMetaData and DESCRIBE FORMATTED) for all schemas to be extracted.

Table Extraction

Read access to the specific schema and table being refreshed.

Query Log Ingestion (QLI)

SELECT on whatever source table or view the configured query log ingestion query targets.

Table Profiling

SELECT on each table to be profiled.

Column Profiling

SELECT on each table to be profiled.

Compose

SELECT (and INSERT/CREATE for DDL statements, if required).

Provide the JDBC URI

Use Basic Authentication

Format

hive2://<hostname_or_ip>:<port>

Example

hive2://10.13.80.155:10000

Use Basic Authentication with SSL

hive2://10.13.80.155:10000/default;ssl=true;

Use Kerberos Authentication with SSL

Format

hive2://<hostname_or_ip>:<port>/default;principal=<principal>;ssl=true;

Example

hive2://10.13.80.155:10000/default;principal=hive/ip-10-13-80-155.alation-test.com@ALATION-TEST.COM;ssl=true;

Note

Enter the JDBC URI in the same hive2://<hostname_or_ip>:<port> format used by the Hive OCF connector, without a jdbc: prefix. Internally, the connector translates this into the CData JDBC Driver’s own connection string. Do not add ssl=, principal=, sslTrustStore=, or trustStorePassword= to the URI when you also use the corresponding dedicated configuration fields (see Configure Connection to Data Source). The connector rejects the connection rather than applying both.

Note

If your cluster runs Hive 2.x, add ProtocolVersion=8 to the JDBC URI, for example hive2://10.13.80.155:10000/default;ProtocolVersion=8;. By default, the CData JDBC driver uses a newer HiveServer2 protocol version than Hive 2.x supports, and the connection fails. Hive 3.x does not need this setting.