Set up the Hive and Impala ODBC Connection

This page provides instructions for setting up "Hive/Impala ODBC and JDBC on Windows or Linux using the Simba OEM ODBC Drivers.

For details about downloading the driver links, contact Acceldata Support.

Download Simba Drivers

For details about Hive and Impala Simba Drivers, contact Acceldata Support.

Set up the Hive and Impala ODBC on Windows

This page provides instructions for setting up Hive and Impala ODBC on Windows using the Simba OEM ODBC Drivers.

Windows HIVE/Impala ODBC

Windows HIVE/Impala ODBC

You can reach out to the Acceldata Support. team by submitting a support ticket to obtain the HIVE and Impala ODBC Driver.

Impala Documentation:

Installation Steps

Follow the below steps to install the Simba OEM ODBC Driver for Hive on Windows.

  1. Unzip the Installation Package: Unzip the SimbaHiveODBC_2.7.0.1002_Windows.zip file to a convenient location.

  2. Create the Installation Directory: Create a dedicated directory for driver installation. For simultaneous 32-bit and 64-bit versions, maintain separate directories.

  3. Copy the Driver Files:

    1. Extract the inner ZIP file corresponding to the desired version (32-bit or 64-bit).
    2. Copy all files and folders from the extracted location to the installation directory.
    3. Copy the [DataSource]ODBC.did file to the \lib subfolder in the installation directory.
  4. Modify the Registry File:

    1. Navigate to the \setup subfolder in the extracted location.

    2. Identify the appropriate .reg file for your installation.

    3. Open the.reg file in a text editor and make the following changes:

      • Update branding information to match the ZIP file name.
      • Replace <INSTALLDIR> with the actual installation directory path.
      • Set SwapFilePath to a writable directory for temporary files.
        • Backslash Escaping:
          • Original Path: C:\Program Files\Magnitude
          • Escaped Path: C:\\Program Files\\Magnitude
    4. Save the changes.

  5. Run the Registry File: Double-click the modified .reg file to create necessary registry keys.

File or Folder NameDescription
\docsContains the Simba-branded driver documentation including release history and connection properties.
\setupContains the Windows registry files necessary for the driver.
[DataSource]ODBC.didThe Vendor-branded .did file determines driver and vendor names. Must be copied to \lib.
Simba[DataSource]ODBC32_[Version].zip or Simba[DataSource]ODBC64_[Version].zipThe Inner ZIP files contain driver components. Extract corresponding to driver bitness.
\ErrorMessagesContains error messages produced by the driver. Copy to the installation directory.
\libContains necessary driver binary files. Copy to the installation directory.
third-party-licenses.txtContains licenses for third-party software used by the driver. Copy to the installation directory.
[DriverSpecificFolder]Placeholder for additional driver components. Copy to installation directory if present.

Registry Entries

The \setup folder contains the Windows registry files for each combination of driver bitness and machine bitness:

  • Setup-32bitDriverOn32Windows.reg
  • Setup-32bitDriverOn64Windows.reg
  • Setup-64bitDriverOn64Windows.reg

Run the appropriate .reg file to add registry entries under HKEY_LOCAL_MACHINE\SOFTWARE or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node depending on machine architecture.

Hive ODBC Setup

  1. Unzip the SimbaHiveODBC_2.7.0.1002_Windows.zip file to a convenient location.
  1. Create a dedicated directory for the driver installation. If installing both 32-bit and 64-bit versions, use the separate directories.
    • Default Path: C:\Program Files\Simba
  • Custom Path: D:\Simba\Custom
  1. Unzip the one more file shown below, which contains libraries.
  1. Depending on whether you are using a 32-bit or 64-bit version of Windows, select and modify the appropriate file below:
    • Setup-32bitDriverOn32Windows.reg
    • Setup-32bitDriverOn64Windows.reg
    • Setup-64bitDriverOn64Windows.reg
  1. From step 4, save and execute the modified .reg file.

The sample registration file:

Installing the Simba Apache Impala ODBC Connector On Windows

  1. Depending on your client application's bitness, double-click to run either Simba Impala 2.8 32-bit.msi or Simba Impala 2.8 64-bit.msi.
  2. Click Next.
  3. If you agree to the terms of the License Agreement, select the checkbox and click Next.
  4. To change the installation location, click Change, browse to your desired folder, and click OK. To accept the default installation location, simply click Next.
  5. Click Install.
  6. Once the installation is complete, click Finish.
  7. If you have received a license file via email, copy it into the \lib subfolder of the installation directory you selected earlier. Ensure that you have the Administrator privileges when modifying the contents of this folder.

Creating a Data Source Name (DSN) on Windows

After installing the Simba Apache Impala ODBC Connector, you need to create a Data Source Name (DSN). A DSN is a data structure that stores connection information, allowing the connector to connect to Impala. Alternatively, you can specify connection settings in a connection string or as connector-wide settings. The connection string settings take precedence over DSN settings, while DSN settings take precedence over connector-wide settings.

Follow these instructions to create a DSN. For details on using connection strings, see Using a Connection String on page 69. For information on connector-wide settings, refer to Setting Connector-Wide Configuration Options on Windows on page 29.

Follow the steps to create a Data Source Name (DSN) on Windows:

  1. From the Start menu, open ODBC Data Sources.

    • Note: Ensure you select the ODBC Data Source Administrator that matches the bitness of the client application you will use to connect to Impala.
  2. In the ODBC Data Source Administrator, click the Drivers tab and scroll down to confirm that the Simba Apache Impala ODBC Connector appears in the list of installed ODBC connectors.

  3. Choose one of the following options:

    • To create a DSN for the current user only, click the User DSN tab.
    • To create a DSN that all users can access, click the System DSN tab.
      • Note: It is recommended to create a System DSN instead of a User DSN, as some applications may use a different user account and may not recognize User DSNs created under another account.
  4. Click Add.

  5. In the Create New Data Source dialog, select Simba Apache Impala ODBC Connector and click Finish. This will open the Simba Apache Impala ODBC Connector DSN Setup dialog.

  6. In the Data Source Name field, enter a name for your DSN.

  7. Optionally, provide a description for the DSN in the Description field.

  8. In the Host field, enter the IP address or hostname of the Impala server.

  9. In the Port field, specify the TCP port number that the Impala server uses to listen for client connections.

    • Note: The default port number for Impala is 21050.
  10. In the Database field, type the name of the database schema to use when a schema is not explicitly specified in a query.

    • Note: You can query other schemas by explicitly specifying the schema in the query. To view your databases, use the command show databases at the Impala command prompt.
  11. In the Authentication section, configure authentication as required. For more details, see Configuring Authentication on Windows on page 12.

    • Note: By default, Impala is configured to use the No Authentication mechanism with the Simba Apache Impala ODBC Connector.
  12. If operations against Impala should be performed on behalf of a different user than the authenticated user, enter the delegated user’s name in the Delegation UID field.

  13. From the Transport Mode drop-down list, select the Thrift transport protocol to use.

    • Note: For information on supported Thrift transport protocols by your Impala server, see Authentication Options on page 67.
  14. To configure a connection through a proxy server, click Proxy Options. For more information, see Configuring a Proxy Connection on Windows on page 19.

  15. If the Transport Mode is set to HTTP, you can configure HTTP options such as custom headers by clicking HTTP Options. For more details, see Configuring HTTP Options on Windows on page 20.

  16. To set up client-server verification over SSL, click SSL Options. For more information, see Configuring SSL Verification on Windows on page 21.

  17. To configure advanced connector options, click Advanced Options. For more details, see Configuring Advanced Options on Windows on page 22.

  18. To set server-side properties, click Advanced Options and then select Server Side Properties. For more information, see Configuring Server-Side Properties on Windows on page 24.

  19. To adjust logging behavior for the connector, click Logging Options. For more information, see Configuring Logging Options on Windows on page 25.

  20. To test the connection, click Test. Review the results and then click OK.

    • Note: If the connection fails, verify that the settings in the Simba Impala ODBC Connector DSN Setup dialog are correct, and contact your Impala server administrator if necessary.
  21. To save your settings and close the Simba Impala ODBC Connector DSN Setup dialog, click OK.

  22. To exit the ODBC Data Source Administrator, click OK.

Add DSN

ODP-3.2.3.0-2

HIVE: LDAP enabled

Transport Mode: binary (port 10000)

Kerberos enabled

Set up the Hive and Impala ODBC on Linux

The ODP ODBC Hive and Impala Setup Documentation

Welcome to the ODP ODBC Hive Setup Documentation. This page provides comprehensive instructions for setting up ODP's ODBC drivers to connect to Apache Hive on both Windows and Linux environments. Follow these steps meticulously to ensure a smooth and successful setup.

Prerequisites

Before you begin, ensure you have the following prerequisites installed:

  • ODBC Driver Managers: Choose one of the following:

    • iODBC 3.52.9 or later
    • unixODBC 2.2.14 or later
  • libsasl Libraries:

    • cyrus-sasl-2.1.22-7 or later
    • cyrus-sasl-gssapi-2.1.22-7 or later

Installation Steps

  1. Download the ODBC Drivers: You can reach out to Acceldata Support to access the ODP ODBC drivers.
  2. Extract the Downloaded Files: Unzip the downloaded archive to a suitable directory.
  3. Install the Drivers: Follow the instructions in the downloaded files to install the drivers on Windows and Linux nodes.

Configuration Steps

  1. Install unixODBC:
Bash
Copy
  1. Extract the Downloaded Tar File:
Bash
Copy
  1. Set the Environment Variables:
Bash
Copy
  1. Set the ODBC Environment Variables:
Bash
Copy
  1. Modify the odbc.ini File: Edit the odbc.ini file with the following configurations.
odbc.ini
Copy

Testing the Connection

Use the following commands to test the connection using the unixODBC driver manager:

Bash
Copy

or

Bash
Copy

Replace [DataSourceName] with the DSN you have configured in the odbc.ini file.

Troubleshooting

Bash
Copy

Solution:

Copy the HiveODBC.did file to the specified location.

Bash
Copy

Conclusion

By following these detailed steps, you can successfully set up ODP's ODBC drivers connection to ODP Hive and Impala.

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