All Products
Search
Document Center

Data Lake Formation:Connect EMR Serverless StarRocks to DLF

Last Updated:Mar 26, 2026

Connect an EMR Serverless StarRocks instance to a Data Lake Formation (DLF) Paimon catalog over the REST protocol, then query your data lake directly from StarRocks.

Prerequisites

Before you begin, ensure that you have:

  • An EMR Serverless StarRocks instance at version 3.3.8 or later. If your instance is on an older version, upgrade it.

  • An EMR Serverless StarRocks instance and a DLF catalog in the same region.

Create a DLF catalog

See Get started with DLF.

Set up access control

DLF uses Resource Access Management (RAM) for access control. By default, StarRocks users have no access to DLF. To grant access, create a RAM user that acts as the StarRocks identity when connecting to DLF, grant that user data permissions in the DLF console, then map it to a StarRocks user.

Step 1: Create or select a RAM user

  1. Log on to the RAM console as an Alibaba Cloud account owner or RAM administrator.

  2. Create a RAM user or select an existing one.

    The RAM user name can contain only letters, digits, and underscores (_) to satisfy StarRocks naming conventions.

Step 2: Grant data permissions in DLF

  1. Log on to the DLF console.

  2. Navigate to your Paimon catalog.

  3. On the Permissions tab, click Grant Permissions and grant the necessary data access on your catalog to the RAM user. For more information, see Manage data permissions.

    image

Step 3: Create and configure a StarRocks user

  1. Go to the EMR Serverless StarRocks console.

  2. Click Connect in the Actions column of your StarRocks instance. For more information, see Use EMR StarRocks Manager to connect to an EMR Serverless StarRocks instance.

    Connect with an admin or other administrative user.

  3. In StarRocks Manager, navigate to Security Center > User Management and click Create User.

  4. In the Create User dialog, configure the following settings and click OK:

    Field Value
    User Source Select RAM User
    Username Select the RAM user you created in step 1
    Password Set a password for this StarRocks user
    Role Default is public
  5. Grant StarRocks privileges to the new user:

    1. On the User Management page, find the new user and click Add Permission in the Actions column.

    2. On the Permissions tab, click Add Permission.

    3. In the Add Permission panel, set Resource and Permission as needed, then click OK.

      This grants the user access to StarRocks internal resources. To modify permissions on your DLF catalog, go to the DLF console.

Step 4: Verify the user mapping (optional)

The StarRocks user is mapped to the RAM user within 10 to 20 seconds. To verify the mapping:

  1. Log on to StarRocks Manager with the new StarRocks user.

  2. Navigate to SQL Editor and click the image icon to create an SQL script.

  3. Run the following command:

    show property;

    If the RAM user ID appears in the output, the mapping is active:

    image

Connect StarRocks to DLF

This creates a logical mapping to your DLF catalog. Creating or deleting the catalog in StarRocks does not affect the actual data in DLF.

Log on to StarRocks Manager as the new StarRocks user, then create an external catalog that points to your DLF Paimon catalog.

  1. Navigate to SQL Editor and click the image icon to create an SQL script.

  2. Run the following SQL to create the external catalog. Replace the placeholder values in the PROPERTIES clause with your actual values.

    CREATE EXTERNAL CATALOG `paimon_catalog`
    PROPERTIES (
      'type' = 'paimon',
      'uri' = 'http://<region-id>-vpc.dlf.aliyuncs.com',
      'paimon.catalog.type' = 'rest',
      'paimon.catalog.warehouse' = '<dlf-paimon-catalog-name>',
      'token.provider' = 'dlf'
    );

    The following table describes each property:

    Property Description Example
    type StarRocks catalog type. Set to paimon. paimon
    uri DLF endpoint. Format: http://[region-id]-vpc.dlf.aliyuncs.com. http://ap-southeast-1-vpc.dlf.aliyuncs.com
    paimon.catalog.type Paimon catalog type. Set to rest to access DLF. rest
    paimon.catalog.warehouse The name of your DLF Paimon catalog. You can obtain this name in the DLF console. StarRocks
    token.provider REST service provider. Set to dlf. dlf

What's next