Configure Connection to MaxCompute

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

Customer Managed Applies to customer-managed instances of Alation

Enhanced Connector Enhanced connectors add extended capabilities and require a separate entitlement in addition to your Alation platform license.

Configure New MaxCompute Data Source

  1. Log in to Alation as a Server Admin.

  2. Expand the Apps menu on the right of the main toolbar and select Sources.

  3. On the Sources page, click +Add (top right) and select Data Source.

  4. In the Add a Datasource screen, select Database Type as MaxCompute OCF Connector.

  5. Configure the API Connection Settings under the General Settings tab:

    ../../../_images/MaxComputeAPIConnection.png

    Parameter

    Description

    Region

    Select the Alibaba Cloud region where your MaxCompute service is deployed (for example, cn-hangzhou, us-east-1). Default: cn-hangzhou.

  6. Provide your Alibaba Cloud RAM credentials:

    ../../../_images/MaxComputeAuthentication.png

    Parameter

    Description

    Access Key ID

    Enter the RAM user’s Access Key ID.

    Access Key Secret

    Enter the RAM user’s Access Key Secret.

  7. Under Test Connection, click Test to validate connectivity to MaxCompute APIs. If the connection succeeds, the status shows Success. If errors occur, review the error messages and verify your credentials and network connectivity.

  8. Configure the following optional performance settings:

    Parameter

    Description

    Default

    Enable API Rate Limiting

    Limits API calls to 40 QPS to avoid DataWorks API throttling.

    Enabled

    Enable Column Lineage

    Enable column-level lineage extraction. Disable for faster extraction.

    Disabled

    Enable Parallel Processing

    Enable parallel API calls for faster extraction.

    Disabled

    Parallel Thread Count

    Number of parallel threads for API calls (1-10).

    4

  9. (Optional) Use table filtering to control which tables are extracted into Alation. This is useful when you have a large number of tables but only want to catalog specific ones. By filtering tables, you can:

    • Reduce extraction time by excluding irrelevant tables

    • Focus on specific business areas (for example, only sales or finance tables)

    • Exclude temporary or test tables from your catalog

    Parameter

    Description

    Table Name Filter (Contains)

    Extract only tables whose names contain the specified text. You can enter multiple values separated by commas.

    Example: Enter sales,orders,customer to extract only tables that have “sales”, “orders”, or “customer” anywhere in their name.

    Table Name Pattern (Regex)

    Extract only tables whose names match the specified pattern. This uses regular expressions for advanced filtering.

    Example: Enter ^fact_.* to extract only tables that start with “fact_”. Enter .*_archive$ to extract only tables that end with “_archive”.

    Note

    If both filters are configured, the Table Name Filter (Contains) is applied first at the API level, and then the Table Name Pattern (Regex) is applied to further refine the results.

  10. Click Save to save all configuration.

Configure JDBC for Compose (Optional)

To enable query execution through Alation Compose:

Note

Compose uses per-user Access Key credentials, not the service account credentials from General Settings. Each user must provide their own Access Key ID and Access Key Secret. For details, see Configure Compose.

  1. Navigate to the Compose tab in the data source settings.

  2. Configure the JDBC URI with the following format:

    jdbc:odps:http://service.<region>.maxcompute.aliyun.com/api?project=<project_name>
    

    Replace <region> with your Alibaba Cloud region and <project_name> with the MaxCompute project name. The jdbc: prefix is optional.

  3. Click Save.

Configure Logging

To set the logging level for troubleshooting:

  1. On the Settings page, expand the Connector logs (optional) section.

  2. Select a logging level from the Log Level dropdown and click Save.

    ../../../_images/MaxComputeLogLevel.png

    Log Level

    Description

    INFO

    Default level. Logs informational messages.

    DEBUG

    Logs detailed information useful for debugging issues.

    WARN

    Logs warning messages for potential issues.

    TRACE

    Logs very detailed tracing information.

    ERROR

    Logs error messages only.

    FATAL

    Logs fatal errors that cause the application to stop.

    ALL

    Logs all messages at all levels.