Data Connection to Apache Impala

  • Last update:November 21, 2024
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Application Scenario

    This document introduces how to connect to the Apache Impala data source.

    iconNote:

    If multiple databases exist in Impala, only one database can be connected through one data connection.

    Preparation

    Version/Driver

    Download the driver package and upload it to FineBI. For details, see section "Uploading the Database Driver" in Driver Management.

    Supported Database VersionDriver Package Link

    Impala 2.2

    Impala 2.3

    Impala 2.8

    Impala 2.9

    Impala 2.10

    ImpalaJDBC41.zip

     

    Impala 2.10 kudu1.5

      

    ClouderaImpalaJDBC41_2 to 5.43.rar

     

    Connection Information Collection

    Before connecting the database, you need to collect the following information:

    • IP address and port number of the database server

    • Database name

    • Username and password (if username and password authentication is used); client principal and keytab file path (if Kerberos authentication is used)

    Connection Procedure

    1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, and click New Data Connection, as shown in the following figure.

    Apache Impala数据连接截图.png

    iconNote:
    If you are not the admin, you can configure data connections only after the admin assigns you the permission on Data Connection Management. For details, see Data Connection Permissions Overview

    2. Select the Apache Impala icon, as shown in the following figure.

    Apache Impala数据连接截图2.png

    3. Select Custom from the Driver drop-down list, select the driver uploaded in section "Version/Driver", and enter the connection information collected in section "Connection Information Collection." To use this data connection in the direct connection version, you need to suffix the URL with the parameter ;UseNativeQuery=1, as shown in the following figure.

    For details about Kerberos authentication, see Kerberos Authentication in Data Connection.

    信息填写页面截图.png

    If an Impala database requires authentication, you need to suffix the URL with the AuthMech parameter. Different parameter values represent different authentication methods, as shown in the following table.

    iconNote:
    If the database does not have a username or password, the URL does not need to be suffixed with this parameter.
    ValueDefinition

    3

    Username and password authentication

    2

    Username authentication

    1

    Kerberos authentication

    0

    No authentication

    The URL format is jdbc:impala://IP address:Port number/DB name;AuthMech=n. (n can be 0, 1, 2, or 3, representing the above-mentioned authentication methods respectively.)

    Username and password authentication: If the value of the AuthMech parameter is 3, the URL format is jdbc:impala://IP address:Port number/DB name;AuthMech=3.

    Username authentication: If the value of the AuthMech parameter is 2, the URL format is jdbc:impala://IP address:Port number/DB name;AuthMech=2.

    Kerberos authentication: If the value of the AuthMech parameter is 1, the URL format is jdbc:impala://IP address:Port number/DB name;AuthMech=1.

    If Kerberos authentication is used as the database authentication method, the URL needs to be suffixed with the AuthMech parameter, name of the client registered with the KDC, keytab file path, and URL corresponding to the Kerberos authentication (namely, AuthMech, KrbHostFQDN, and KrbServiceName parameters respectively).

    Parameter
    ValueDefinition

    AuthMech

    1

    Kerberos authentication

    KrbHostFQDN

    FQDN of the Impala server, which is the same as the value of admin_server in the krb5.conf file

    Server where the Impala to be   connected is located

    KerberosServiceName

    Corresponding service name

    Server alias (For details, see Parameter Definition.)

    The URL format is jdbc:impala://IP address:Port number/default;AuthMech=1;KrbHostFQDN=hostalias;KrbServiceName=impala.

    For example: jdbc:impala://192.168.5.127:21050/default;AuthMech=1;KrbHostFQDN=quickstart.cloudera;KrbServiceName=impala. For details, see Kerberos Authentication in Data Connection.

    4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.

    连接成功.png

    Adding Database Tables to FineBI

    Two methods are available to add database tables to FineBI.

    新建数据集图片.png

    Notes

    Database Notice

    • When you connect FineBI to Apache Impala, data query is case-insensitive. The query results returned are in lowercase.

    • Impala does not support the date type, but supports the timestamp type.

    • Impala does not support multiple distinct count statements. SQL errors may be reported when you preview data with multiple distinct count statements.

    Connection Failure After Version Upgrade

    Problem:

    After the upgrade, the connection failed and the error message "Error initialized or created transport for authentication: java.io.IOException" is reported, as shown in the following figure.

    Cause:

    After the upgrade, the .ini file created by the built-in JASS code will be lost, causing a connection failure.

    Solution:

    Change the authentication method of Kerberos to the second one. For details, see Kerberos Authentication in Data Connection.


    附件列表


    主题: Data Preparation
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    7s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy