Obtain and Install Drivers for Impala
To obtain JDBC drivers for Impala
| 1. | From the web, locate the Impala zip files. |
Choose your version from the following download locations:
| — | https://archive.apache.org/dist/impala |
| — | https://www.cloudera.com/downloads/connectors/impala/jdbc |
| — | http://maven.tpccn.com/nexus/content/repositories/public/com/cloudera/ImpalaJDBC41/2.6.3/ |
| — | https://mvnrepository.com/artifact/org.apache.hadoop |
For example:
| — | Do a web search and download apache-impala-<version number>.tar.gz . |
Or query and follow instructions retrieved at:
Refer to the TDV Installation guide for more details about the supported versions.
| 2. | Unpack the zip file. |
| 3. | Copy the following JAR files for your version |
|
Version |
JAR Files |
|
Impala 2.0 with Kerberos |
commons-collections-3.2.1.jar commons-configuration-1.6.jar commons-logging-1.1.3.jar Core-Site.jar(core-site.jar file is required for the TRUSTED_DELEGATION case when the “default_realm” is not the login realm.) guava-11.0.2.jar hadoop-auth-2.5.0-cdh5.3.0.jar hadoop-common-2.5.2.jar hadoop-mapreduce-client-core-2.5.0-cdh5.3.0.jar hive-exec-1.0.0.jar hive-jdbc-1.0.0.jar hive-service-1.0.0.jar httpclient-4.2.5.jar httpcore-4.2.5.jar libfb303-0.9.0.jar libthrift-0.9.0.jar log4j-1.2.16.jar slf4j-api-1.7.5.jar slf4j-log4j12-1.7.5.jar |
|
Impala 2.0 |
hadoop-core-1.2.1.jar commons-logging-1.1.3.jar hive-exec-0.13.1-cdh5.3.0.jar hive-jdbc-0.13.1-cdh5.3.0.jar hive-metastore-0.13.1-cdh5.3.0.jar hive-service-0.13.1-cdh5.3.0.jar httpclient-4.2.5.jar httpcore-4.2.5.jar libfb303-0.9.0.jar libthrift-0.9.0.jar log4j-1.2.17.jar slf4j-api-1.7.5.jar slf4j-log4j12-1.7.5.jar |
|
Apache Impala 2.x |
slf4j-log4j12-1.7.5.jar slf4j-api-1.7.5.jar log4j-1.2.16.jar libthrift-0.9.0.jar libfb303-0.9.0.jar httpcore-4.2.5.jar httpclient-4.2.5.jar hive-service-1.0.0.jar hive-jdbc-1.0.0.jar hive-exec-1.0.0.jar hadoop-common-2.5.2.jar commons-logging-1.1.3.jar |
|
Cloudera Impala 2.7 |
commons-codec-1.3.jar commons-logging-1.1.1.jar hive_metastore.jar hive_service.jar httpclient-4.1.3.jar httpcore-4.1.3.jar ImpalaJDBC41-2.6.3.jar libfb303-0.9.0.jar libthrift-0.9.0.jar log4j-1.2.14.jar ql.jar slf4j-api-1.5.11.jar slf4j-log4j12-1.5.11.jar TCLIServiceClient.jar zookeeper-3.4.6.jar |
To install the JDBC drivers for Impala
Make sure to add the JAR files to all of your TDV clients and servers.
<TDV_install_dir>\conf\adapters\system\impala_2_0
<TDV_install_dir>\conf\adapters\system\impala_2_2
| 4. | Restart the TDV Server. |
To enable Kerberos authentication:
Configure the following JDBC connection URL to authenticate the connecting user with Kerberos:
jdbc:impala://localhost:21050;AuthMech=1;KrbRealm=EXAMPLE.COM;KrbHostFQDN=impala.example.com;KrbServiceName=impala