Alibaba Cloud data source: E-MapReduce Serverless StarRocks

更新时间:
复制 MD 格式

Add an E-MapReduce Serverless StarRocks data source to connect Quick BI to your StarRocks database. After you add the data source, you can use Quick BI to analyze and visualize your data. You can connect to your StarRocks database over the public network or through an Alibaba Cloud VPC. This topic describes how to add an E-MapReduce Serverless StarRocks data source.

Limitations

Supported versions: 2.5.18, 3.1.7, 3.1.9, and 3.2.6.

Prerequisites

  • Ensure that you have a stable network connection:

    • If you connect to the StarRocks database over the public network, add the Quick BI IP addresses to the database whitelist. For more information, see Use a security group.

    • If you connect to the StarRocks database over an internal network, establish a connection using one of the following methods:

      • If your StarRocks database is hosted on an Alibaba Cloud Elastic Compute Service (ECS) instance, you can connect to it through an Alibaba Cloud VPC.

      • You can set up a bastion host and use an SSH tunnel to access the database.

  • You have created a StarRocks database.

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

Procedure

  1. Log on to the Quick BI console.

  2. Follow these steps to add the data source.

    1. For details about how to access the data source creation page, see Create a data source.

    2. On the Alibaba Cloud Databases tab, select the E-MapReduce Serverless StarRocks data source.

      image

  3. In the Configure Connection dialog box, configure the following parameters based on your business requirements.image

    Parameter

    Description

    Display name

    The display name for the data source. This name is displayed in the list of data sources.

    The name cannot contain special characters or have leading or trailing spaces.

    Database address

    The IP address or domain name of your StarRocks database.

    Port

    The port number of your database.

    Database

    The database name you specified when you deployed the StarRocks database.

    Username and password

    The username and password to log on to the StarRocks database. Ensure that this user has CREATE, INSERT, UPDATE, and DELETE permissions on the database tables.

    VPC data source

    Select this option and configure the following parameters only if your StarRocks database is deployed on an Alibaba Cloud ECS instance and uses an Alibaba Cloud VPC network. 

    • AccessKey ID: The AccessKey ID of the Alibaba Cloud account that owns the instance.

      For more information, see Create an AccessKey.

      Note

      Ensure that the AccessKey ID has read permission for the target instance. If the AccessKey ID also has the write permission for the corresponding security group, the system automatically adds the Quick BI IP addresses to the whitelist. Otherwise, you must add them manually. For more information, see Create a custom permission policy.

    • AccessKey Secret: The AccessKey Secret that corresponds to the AccessKey ID.

      For more information, see Create an AccessKey.

    • Instance ID and Region: The StarRocks instance ID and the region where it is located.

      You can find the instance ID on the StarRocks instance details page in the E-MapReduce console. For more information, see View instance lists and details.

    Initialize SQL

    If you enable this option, you can specify SQL statements that automatically run after a connection is established with the data source.

    Only SET statements are allowed. Separate multiple statements with a semicolon (;).

    Enable file upload entry

    If you enable this option, you can upload files to the data source.

  4. Click Test Connection to test the connection.

    image

  5. After the test succeeds, click OK to add the data source.

Next steps

After you create the data source, you can create a dataset to analyze and visualize your data.