All Products
Search
Document Center

Dataphin:Create a Presto data source

Last Updated:Jun 17, 2026

Create a Presto data source to use it for offline development in Dataphin.

Background information

Presto is a high-performance, distributed SQL query engine that supports fast queries and analysis across various data sources such as HDFS, MySQL, and Cassandra. It is suitable for real-time queries, interactive analysis, and large-scale data processing.

Permission description

Only custom global roles with the Create Data Source permission and system roles such as super administrator, data source administrator, domain architect, and project administrator can create data sources.

Procedure

  1. On the Dataphin homepage, click Management Hub > Datasource Management in the top navigation bar.

  2. On the Datasource page, click +Create Data Source.

  3. In the Create Data Source page, select Presto from the NoSQL section.

    You can also select Presto from the Recently Used section or search for it by keyword.

  4. On the Create Presto Data Source page, configure the data source connection parameters.

    1. Configure the basic information of the data source.

      Parameter

      Description

      Datasource Name

      Enter the name of the data source. The naming convention is as follows:

      • The name can contain only Chinese characters, letters, digits, underscores (_), or hyphens (-).

      • The name cannot exceed 64 characters in length.

      Datasource Code

      Once configured, you can access Dataphin data source tables in Flink_SQL tasks or through the Dataphin JDBC client using the format data source code.table name or data source code.schema.table name. To automatically switch data sources based on the task execution environment, use the variable format ${data source code}.table or ${data source code}.schema.table. For more information, see Dataphin data source table development method.

      Important
      • The data source code cannot be modified after it is configured.

      • You can preview data on the object details page in the asset directory and asset checklist only after the data source code is configured.

      • In Flink SQL, only MySQL, Hologres, MaxCompute, Oracle, StarRocks, Hive, SelectDB, and GaussDB data warehouse service (DWS) data sources are currently supported.

      Version

      Currently, only Presto version 2.1.5 is supported.

      Data Source Description

      Enter a brief description of the data source, within 128 characters.

      Data Source Configuration

      Select the configuration environment for the data source:

      • If your business data source distinguishes between production and development data sources, select Production + Development Data Source.

      • If your business data source does not distinguish between production and development data sources, select Production Data Source.

      Tag

      Categorize data sources with tags. To create tags, see Manage data source tags.

    2. Configure the connection parameters between the data source and Dataphin.

      If you selected Production + Development Data Source in the previous step, the configuration page for Production + Development Data Source is displayed. If you selected Production Data Source, only the configuration page for Production Data Source is displayed.

      Note

      We recommend configuring production and development data sources separately for environment isolation. However, Dataphin also supports using the same data source with identical parameter values for both environments.

      Parameter

      Description

      JDBC URL

      The Presto connection address. The format is jdbc:presto://ip:port/catalog/schema. The catalog/schema parameters are optional in the connection address.

      Username

      The username for accessing the Presto data source.

  5. Select a Default Resource Group that will be used to run tasks related to the current data source, including database SQL, offline database migration, and data preview.

  6. Click Test Connection to verify connectivity, or click OK to save the Presto data source.

    Clicking Test Connection verifies that the data source can connect to Dataphin. If you click OK directly, the system automatically tests the connection for all selected clusters. The data source is created even if the connection tests fail.