Securing Hive with KNOX

KNOX with Hive Enablement

To secure the Hive beeline connection with Knox, you have to first change the transport mode of the connection.

  1. In General, edit the below parameter.
Bash
Copy
  1. Add hiveserver2 to the KNOX topology.

hive.server2.thrift.http.path is the configuration in HIVE, which sets the URL endpoint while in HTTP mode, By default, its value is cliservice.

Bash
Copy

After adding these two configurations, you can access the hive beeline connection securely through KNOX.

Need the trust store password for KNOX and gateway.jks to access Beeline.

Bash
Copy

KNOX ODBC Connection

You can connect to Hive through Knox using either ODBC or JDBC jars.

You need to set up odbc.ini using ODBC jars, and the rest of the connection stays the same.

Bash
Copy

The Connection String is as follows.

Bash
Copy

KNOX JDBC Connection

You can use this JDBC url format for the Knox JDBC connection.

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated