This section provides you with information on how to connect and load data from Hive using Cloudera Hive JDBC driver.
Download the compatible Cloudera Hive JDBC driver.
If you want to use any other driver, contact Exasol support team.
Configure Driver in EXAoperation
You can follow the below steps to configure the drive in EXAoperation. Additionally, refer to the Manage JDBC Drivers section for more information.
- Log in to EXAoperation user interface as an Administrator user.
- Select Configuration > Software and click the JDBC Drivers tab.
- Click Add to add the JDBC driver details.
- Enter the following details for the JDBC properties:
- Driver Name: HiveCloudera
- Main Class: com.cloudera.hive.jdbc41.HS2Driver
- Prefix: jdbc:hive2:
- Disable Security Manager: Leave this option unchecked.
- Comment: This is an optional field.
- Click Add to save the settings.
- Select the radio button next to the driver from list of JDBC driver.
- Click Choose File to locate the downloaded driver and click Upload to upload the JDBC driver.
Run the following statement to import your data:
-- Connecting EXAloader via Cloudera Hive driver to Cloudera,
-- MapR, and Hortonworks Hadoop distributions
create or replace connection hive_conn to 'jdbc:hive2://192.168.42.133:10000' user
'cloudera' identified by 'cloudera';
create or replace connection hive_conn to 'jdbc:hive2://192.168.42.134:10000' user
'mapr' identified by 'mapr';
-- Azure Hortonworks Sandbox with HDP 2.6.4
create or replace connection hive_conn to 'jdbc:hive2://192.168.42.1:10000' user
'raj_ops' identified by 'raj_ops';
-- EXPORT test for Cloudera driver
into jdbc driver = 'HiveCloudera' at hive_conn table exa_syscat created by
'create table exa_syscat (schema_name varchar(128), object_name varchar(128),
object_type varchar(15), object_comment varchar(2000))'
-- IMPORT test for Cloudera driver
import into(schema_name varchar(128), object_name varchar(128), object_type varchar(15),
from jdbc driver = 'HiveCloudera' at hive_conn table exa_syscat;
The IMPORT statement allows you to use Kerberos connections in your connection string. For more details, see the example in connection_def.