After installing the fix pack, and verifying the installation, complete the following steps to connect to and capture data from HIVE using a Kerberos Keytab.
- Download
build.gradleinto the/tmpfolder. - Copy
build.gradleto the/opt/infogix/dqplus-<version>/scriptsfolder. - Grant execute permission to the file. For example:
cp /tmp/build.gradle /opt/infogix/dqplus-10.2/scripts chmod 777 build.gradle - Copy the keytab file and hive jar files to
/opt/infogix/dqplus-<version>/overrides/hive.Tip: Make sure you use distinct names for all keytab files, for examplesagacity.hadoop.keytab,sagacity.kafka.keytab, andsagacity.hive.keytab.The following drivers have been tested and verified to connect to Hortonworks 2.6 / Hive 1.2 as a data source using Kerberos authentication. Note that other versions of drivers have not been validated and might not work.
- curator-client-2.6.0.jar
- curator-framework-2.6.0.jar
- curator-recipes-2.6.0.jar
- hive-beeline-1.2.1000.2.6.0.3-8.jar
- hive-cli-1.2.1000.2.6.0.3-8.jar
- hive-exec-1.2.1000.2.6.0.3-8-mod.jar
- hive-jdbc-1.2.1000.2.6.0.3-8.jar
- hive-metastore-1.2.1000.2.6.0.3-8.jar
- hive-service-1.2.1000.2.6.0.3-8.jar
- For Cloudera 7.1.9 and Hive 2.1 Copy the keytab file , cm-auto-global_truststore.jks and hive jar files to
/opt/infogix/dqplus-<version>/overrides/hive.The following drivers have been tested and verified to connect to Cloudera 7.1.9 / Hive 2.1 as a data source using Kerberos authentication. Note that other versions of drivers have not been validated and might not work.
- hive-jdbc-2.1.1-cdh7.1.9-standalone.jar
- Execute the deploy command.
After installing the fix pack, and verifying the installation, complete the following steps to connect to and capture data from HIVE using a Kerberos Keytab.
Complete the following steps to connect to and capture data from HIVE using a Kerberos Keytab:
- Download
build.gradleinto the/tmpfolder. - Copy
build.gradleto the/opt/infogix/dqplus-<version>/scriptsfolder - Grant execute permission to the file. For example:
cp /tmp/build.gradle /opt/infogix/dqplus-10.2/scripts chmod 777 build.gradle - Copy the keytab file to
/opt/infogix/dqplus-<version>/runtimeTip: Ensure that you use distinct names for all keytab files, for examplesagacity.hadoop.keytab,sagacity.kafka.keytab, andsagacity.hive.keytab. - Execute the deploy command.
Defining the JDBC URL for Cloudera 7.1.9 and Hive 2.1 in a Data Store
Complete the following steps to define the JDBC URL for Cloudera 7.1.9 and Hive 2.1.
In the JDBC URL, add the sslTrustStore property with the full path to the trust store: sslTrustStore=/opt/cafe/util/spark/jars-hive/cm-auto-global_truststore.jks.
For interactive mode, the full JDBC URL is as follows:
jdbc:hive2://<hostname>:10000/;principal=hive/hostname@INFOGIX.COM;ssl=true;sslTrustStore=/opt/cafe/util/spark/jars-hive/cm-auto-global_truststore.jks
After Test Connection, Generate Fields, Test Data Store and Test Analysis are successful in interactive mode, for analysis execution, use sslTrustStore=cm-auto-global_truststore.jks, so the JDBC URL is as follows:
jdbc:hive2://<hostname>:10000/;principal=hive/<hostname>@INFOGIX.COM;ssl=true;sslTrustStore=cm-auto-global_truststore.jks
Using a keytab in an analysis
To run an analysis by using a keytab for hive data store, set the following execution properties in the analysis:
| Property | Description |
|---|---|
| cafe.db.hive.keytab.user | The keytab principal name |
| cafe.db.hive.keytab.file |
The |