Step 2: Real-time project planning

更新时间: 2026-06-23 15:06:32

Create and bind Ververica Flink compute sources, data sources, and a real-time project for this tutorial.

Step 1: Create Ververica Flink compute source

  1. On the Dataphin home page, click Planning in the top menu bar.

  2. Follow the image below to open the Ververica Flink New Compute Source page.

    image..png

  3. On the New Compute Source page, fill in the required parameters.

    Parameter

    Description

    Compute Type

    Choose Ververica Flink as the compute type.

    Region

    Select the region of the compute source, such as China (Hangzhou).

    Access Method

    Choose the access method for the compute source. VPC network is recommended.

    Accesskey ID, AccessKey Secret

    Provide the AccessKey ID and AccessKey Secret for an account with access to the fully managed Flink project.

    Retrieve the AccessKey ID and AccessKey Secret from the User Information Management page.

    image..png

    Flink Workspace ID

    Select the Flink Workspace ID associated with the Ververica Flink compute source, typically flink_dataphin_default.

    Flink Project Space

    Choose the Project Space for the Ververica Flink compute source.

    Compute Source Name

    Enter the name flink_dataphin for the compute source.

    Description

    Enter a description, such as Real-time R&D demo.

  4. Click Validate And Submit. The system verifies connectivity and creates the compute source.

Step 3: Create project

  1. Follow the image below to open the New Project dialog box.

    image.png

  2. In the Production Development Type step, select Basic Mode and click Next.

  3. In the New Project dialog box, configure the following parameters:

    Parameter

    Description

    Business Unit

    Leave blank.

    Project English Name

    Enter flink_dataphin.

    Project Name

    Enter the project name flink_dataphin.

    Compute Source Type

    Activate the real-time engine and select the Ververica Flink compute source. For the Flink stream processing compute source, choose the previously created flink_dataphin compute source.

    Space Type

    Choose General Layer.

    Security Settings

    Use the default configuration.

    More Settings

    Use the default configuration.

  4. Click OK to create the real-time project.

Step 4: Create data source

  1. On the Dataphin home page, select Management Center from the top menu bar.

  2. Follow the image below to open the New Data Source dialog box.

    image.png

  3. In the Relational Data Source section, select MySQL.

  4. In the New MySQL Data Source dialog box, configure the following parameters:

    Parameter

    Description

    Data Source Name

    Enter the name flink_dataphin for the data source.

    Version

    Select the version, for example, MySQL8.

    Data Source Description

    Enter a description, such as Source data for real-time R&D.

    Datasource Config

    Choose the "production" Data Source configuration.

    Tag

    Leave as the default option, Not Filled.

    JDBC URL

    Enter the JDBC URL in the format jdbc:mysql://host:port/dbname. You can find the host:port details on the MySQL instance product page, as illustrated below:

    image.png

    Important
    • Ensure Dataphin's IP is added to the database whitelist to avoid connection issues. For details on how to do this.

    • If using an internal network address, ensure that the database and Dataphin instance are in the same region. For additional information.

    Username, Password

    Enter the username and password for the data source.

    SSL Encryption

    If SSL encryption is enabled for your MySQL data source, select Enable, then Upload Truststore Certificate, and enter the Truststore Certificate Password.

    Type

    Choose ApsaraDB as the type.

    Note

    The access method should correspond to the network type selected during database creation.

    For a Public Network Database, select a database accessible over the public network.

    ApsaraDB refers to a database hosted on Alibaba Cloud.

    For an ECS (VPC) Self-managed Database, choose a self-managed database within a VPC.

    Advanced Settings

    Use the default configuration.

  5. Click Test Connection to verify connectivity.

  6. After the test succeeds, click OK to complete the data source setup.

上一篇: Step 1: Prepare cloud resources 下一篇: Step 3: Create a real-time compute table
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈