Setup
Step 1: Get your Alibaba Cloud credentials
To connect ClarityQ to your MaxCompute project, you’ll need the following information:- Access Key ID
- Access Key Secret
- MaxCompute Endpoint
- Project Name
Step 2: Create a RAM user for ClarityQ
Create a dedicated RAM (Resource Access Management) user for ClarityQ to securely access your MaxCompute data:- Log in to the Alibaba Cloud Console
- Navigate to RAM → Users
- Click Create User
- Enter the login name
clarityq - Check Permanent AccessKey (“Create an AccessKey ID and Secret for API or SDK access”)
- A confirmation prompt will appear — check I confirm that it is necessary to create an AccessKey
- Click OK
- Copy the Access Key ID and Access Key Secret immediately — the secret is only shown once
Step 3: Assign permissions to the RAM user
Grant the ClarityQ RAM user the necessary permissions to read your MaxCompute data. First, find your Main Account UID and the RAM user’s UID:- Go to the RAM Console → Users
- Click on the
clarityquser - Copy the User UID (a numeric ID) — this is your
<ram-user-uid> - Your Main Account ID can be found by hovering over your avatar in the top-right corner of the Alibaba Cloud Console — this is your
<main-account-uid>
<main-account-uid>, <ram-user-uid>, and <project_name> with your values:
Step 4: Find your MaxCompute endpoint
The MaxCompute endpoint is region-specific. Use the endpoint that corresponds to the region your project is deployed in:- Go to the MaxCompute Endpoints documentation
- Find the row matching your project’s region
- Copy the appropriate endpoint URL
Step 5: Configure connection in ClarityQ
In the ClarityQ interface, fill out the connection form with the following fields:Required Fields
- Connection Name: Choose a name for this connection (e.g., “Production MaxCompute”)
- Access Key ID: Your RAM user’s Access Key ID
- Access Key Secret: Your RAM user’s Access Key Secret
- Endpoint: Your region-specific MaxCompute endpoint (e.g.,
http://service.cn-hangzhou.maxcompute.aliyun.com/api) - Project Name: Your MaxCompute project name (e.g.,
my_analytics_project)
Step 6: Test the connection
Verify the connection in ClarityQ to ensure:- Alibaba Cloud authentication succeeds
- MaxCompute project is accessible
- Table metadata can be discovered
- Query execution works correctly
Connection parameters reference
Required parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
connection_name | string | Unique identifier for this connection | Production MaxCompute |
access_key_id | string | Alibaba Cloud RAM user Access Key ID | LTAI5t... |
access_key_secret | string | Alibaba Cloud RAM user Access Key Secret | gKxR8... |
endpoint | string | Region-specific MaxCompute service endpoint (see Step 4) | - |
project_name | string | MaxCompute project name | my_analytics_project |
Troubleshooting
Common connection issues
Authentication failed- Verify your Access Key ID and Secret are correct and active
- Ensure the RAM user has Permanent AccessKey enabled
- Check that the Access Key has not been disabled or deleted in the RAM console
- Confirm the project name is spelled correctly (case-sensitive)
- Verify the endpoint region matches the region where your project was created
- Ensure the RAM user has been granted access to the project
- Confirm the RAM user has been granted SELECT permissions at the project level
- For project-level permissions, ensure the
ADD USERcommand was run before granting table access - Check if the project owner has restricted access via security policies or label-based security