Creating a Data Source Name

Typically, after installing the Simba Impala ODBC Driver, you need to create a Data Source Name (DSN). A DSN is a data structure that stores connection information so that it can be used by the connector to connect to Impala.

Alternatively, you can specify connection settings in a connection string or as connector-wide settings. Settings in the connection string take precedence over settings in the DSN, and settings in the DSN take precedence over connector-wide settings.

The following instructions describe how to create a DSN. For information about specifying settings in a connection string, see Using a Connection String. For information about connector-wide settings, see Setting Connector-Wide Configuration Options.

To create a Data Source Name:

  1. From the Start menu, go to ODBC Data Sources.
  2. Note:

    Make sure to select the ODBC Data Source Administrator that has the same bitness as the client application that you are using to connect to Impala.

  3. In the ODBC Data Source Administrator, click the Drivers tab, and then scroll down as needed to confirm that the Simba Impala ODBC Driver appears in the alphabetical list of ODBC drivers that are installed on your system.
  4. Choose one:
    • To create a DSN that only the user currently logged into Windows can use, click the User DSN tab.
    • Or, to create a DSN that all users who log into Windows can use, click the System DSN tab.

    Note:

    It is recommended that you create a System DSN instead of a User DSN. Some applications load the data using a different user account, and might not be able to detect User DSNs that are created under another user account.

  5. Click Add.
  6. In the Create New Data Source dialog box, select Simba Impala ODBC Driver and then click Finish. The Simba Impala ODBC Driver DSN Setup dialog box opens.
  7. In the Data Source Name field, type a name for your DSN.
  8. Optionally, in the Description field, type relevant details about the DSN.
  1. In the Host field, type the IP address or host name of the Impala server.
  2. In the Port field, type the number of the TCP port that the Impala server uses to listen for client connections.
  3. Note:

    The default port number used by Impala is 21050.

  4. In the Database field, type the name of the database schema to use when a schema is not explicitly specified in a query.
  5. Note:

    You can still issue queries on other schemas by explicitly specifying the schema in the query. To inspect your databases and determine the appropriate schema to use, type the show databases command at the Impala command prompt.

  6. In the Authentication area, configure authentication as needed. For more information, see Configuring Authentication.
  7. Note:

    The default configuration of Impala requires the Simba Impala ODBC Driver to be configured to use the No Authentication mechanism.

  8. Optionally, if the operations against Impala are to be done on behalf of a user that is different than the authenticated user for the connection, type the name of the user to be delegated in the Delegation UID field.
  9. In the Transport Mode drop-down list, select the Thrift transport protocol to use in the Thrift layer.
  10. Note:

    For information about how to determine which Thrift transport protocols your Impala server supports, see Authentication Options.

  11. To configure a connection through a proxy server, click Proxy Options. For more information, see Configuring a Proxy Connection.
  12. If the Transport Mode option is set to HTTP, then to configure HTTP options such as custom headers, click HTTP Options. For more information, see Configuring HTTP Options.
  13. To configure client-server verification over SSL, click SSL Options. For more information, see Configuring SSL Verification.
  14. To configure advanced connector options, click Advanced Options. For more information, see Configuring Advanced Options.
  15. To configure server-side properties, click Advanced Options and then click Server Side Properties. For more information, see Configuring Server-Side Properties.
  16. To configure logging behavior for the connector, click Logging Options. For more information, see Configuring Logging Options.
  17. To test the connection, click Test. Review the results as needed, and then click OK.
  18. Note:

    If the connection fails, then confirm that the settings in the Simba Impala ODBC Connector DSN Setup dialog box are correct. Contact your Impala server administrator as needed.

  19. To save your settings and close the Simba Impala ODBC Connector DSN Setup dialog box, click OK.
  20. To close the ODBC Data Source Administrator, click OK.