How to Connect To Hive Using ODBC in Tableau
Note: The ODBC connector is supported for Windows version of Tableau only.
- Download Hortonworks driver from the link below
https://hortonworks.com/downloads/#addons
- Chose Hortonworks ODBC Driver for Apache Hive (v2.1.10) from Hortonworks Data Platform Add-Ons section (Tested Windows 64 bit)
- Download and run/install the driver.
- Create a Data Source Name in ODBC Administrator:
- Open Data Sources (ODBC) from Control Panel/Administrative Tools.
- Highlight "Sample Hortonworks Hive DSN" from System DSN tab and click "Configure" button
- Enter the following info
- Host(s): <HOST_NAME>
- Port: <PORT>
- Database: Default
- Mechanism: select "User name password" from dropdown
- User name: <USER_NAME>
- Password: <PASSWORD>
- Delegation UID:
- Thrift Transport: select "HTTP" from dropdown
- Click on HTTP Options
- HTTP Path: gateway/default/hive
- Click on SSL Options
- Check "Enable SSL" checkbox
- Check "Allow Common name host name mismatch" checkbox - This option specifies whether a CA-issued SSL certificate name must match the host name of the Hive server
- Trusted Certificates: The full path of the .pem file containing trusted CA certificates for verifying the server when using SSL.
- Click "Test" on the bottom of the dialog box to test
- Once successful, click "OK" button
From Tableau
- On the Connect screen
- Click "More ..." from "To a Server" section
- Choose "Other Databases (ODBC)"
- DSN: Choose "Sample Hortonworks Hive DSN" from dropdown
- Click "Connect" button. (Once connected, "Connection Attributes" section will be activated/enabled)
- On the Connection Attributes Section
- Server: <HOST_NAME>
- Port: <PORT>
- Database: Default
- Username: <USER_NAME>
- Password: <PASSWORD>
- Click on "Sign In"

