Create a self-managed Hive data source

更新时间:
复制 MD 格式

This topic describes how to create a Hive data source.

Prerequisites

  • Ensure network connectivity:

    • If you connect Quick BI to your Hive database over the public network, add Quick BI's IP addresses to your database whitelist. For more information, see Use security groups.

    • If you connect Quick BI to your Hive database over an internal network, set up a jump server and use an SSH tunnel to log on and access the database.

  • You have created a Hive database.

  • You have obtained the username and password for the Hive database.

Limits

Apache Hive versions 2.0.1 through 2.3.3 are supported.

Procedure

  1. Log on to the Quick BI console.

  2. Add a data source as follows.

    1. Go to the data source creation interface from the Create data source entry.

    2. On the Self-managed data sources tab, select Hive.image

  3. In the Configure connection dialog box, complete the following settings.image

    Name

    Description

    Display name

    The display name shown in the data source list.

    Enter a valid name without special characters. Do not include leading or trailing spaces.

    Database address

    The address where the Hive database is deployed, such as an IP address or domain name.

    Port

    The port number of the database.

    Database

    The name of the database to connect to.

    Username

    The username for the database.

    Password

    The password for the database.

    SSH

    Based on your scenario, choose whether to use SSH to connect to the data source. If you select SSH, configure the following parameters:

    • SSH Host: The hostname or IP address.

    • SSH username: The SSH username for the database.

    • SSH Password: the username and password for the corresponding database.

    • SSH port: The SSH port. The default is 22.

    Initialization SQL

    When enabled, you can specify SQL statements to run after the data source connection is initialized.

    Only SET statements are allowed. Separate multiple statements with semicolons.

    VPC data source

    Select this option only if your database is deployed on an Alibaba Cloud ECS instance in an Alibaba Cloud VPC. If selected, enter the internal IP address and internal port for the database address and port.

    • Owner AccessKey ID and Owner AccessKey secret: The AccessKey ID and AccessKey secret of the account that purchased the instance. Ensure this account has read permissions on the destination instance. If it also has write permissions, the system automatically adds the required whitelist entries. Otherwise, you must add them manually. For more information, see Create a custom policy.

      For more information, see Create an AccessKey.

    • Instance ID: The ECS instance ID. Log on to the ECS console and find the instance ID on the Instances tab.

      For more information, see View instance information.

    • Region: The region where the ECS instance is located. Log on to the ECS console and check the region in the upper-left corner of the page.

      For more information, see View instance information.

  4. Click Test connection to verify connectivity to the data source.

    image

  5. If the test succeeds, click OK to complete adding the data source.

What to do next

After creating the data source, you can create datasets and analyze data.