Self-managed Presto data source

更新时间:
复制 MD 格式

This topic describes how to create a Presto data source. Only Professional Edition and Premium Edition support creating Presto data sources.

Prerequisites

  • Ensure network connectivity:

    • If you connect Quick BI to your Presto 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 Presto database over an internal network, use one of the following methods to ensure network connectivity between the data source and Quick BI:

      • If your Presto database runs on an Alibaba Cloud ECS instance, connect using Alibaba Cloud VPC.

      • Alternatively, set up a jump server and access the database through an SSH tunnel.

  • You have created a Presto database.

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

Limits

PrestoDB version 0.219 and Trino version 354 or later are supported.

Procedure

  1. Log on to the Quick BI console or the .

  2. Add a data source as shown in the following figure.

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

    2. Select the Presto data source.

      image

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

    Name

    Description

    Connection mode

    Select NAT mode or Cluster mode.

    Note

    VPC data sources and SSH are not supported in cluster mode.

    Display name

    The display name for the data source in the configuration list. Enter a valid name without special characters. Do not include leading or trailing spaces.

    Database address and Port

    The IP address or domain name and port of the Presto database.

    Catalog

    The data source used by Presto for queries.

    Schema

    The name of the schema to connect to.

    Username and Password

    The username and password for the database.

    Database version

    PrestoDB and Trino versions are currently supported.

    VPC data source

    Based on your business scenario, select whether the data source is a self-managed ECS VPC data source. If you select VPC data source, configure the following parameters:

    • Owner AccessKey ID: The AccessKey ID of the account that purchased the instance.

      For more information, see Create an AccessKey.

      Note

      Ensure this AccessKey ID has read permissions on the destination instance. If it also has write permissions, the system automatically adds the IP address to the whitelist. Otherwise, you must add it manually. For more information, see Create a custom policy.

    • Owner AccessKey Secret: The AccessKey secret of the account that purchased the instance.

      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 resides. Log on to the ECS console and check the region in the upper-left corner.

      For more information, see View instance information.

    Note

    VPC data sources are not supported in cluster mode.

    SSL

    If SSL is configured for the destination data source, select SSL to secure data transmission.

    SSH

    Based on your business scenario, select whether to connect to the data source using SSH. 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 port for the database. Default is 22.

    Note

    SSH is not supported in cluster mode.

    Initialization SQL

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

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

  4. Click Test Connection to verify connectivity.

    image

  5. After a successful test, click OK to complete adding the data source.

What to do next

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