All Products
Search
Document Center

MaxCompute:Connect DataGrip to MaxCompute

Last Updated:Mar 26, 2026

DataGrip is a database management tool by JetBrains. This guide walks you through installing the MaxCompute JDBC driver in DataGrip, configuring a data source, and running your first queries against a MaxCompute project.

Prerequisites

Before you begin, ensure that you have:

Step 1: Add a driver and configure a data source

  1. Launch DataGrip and access the main interface.

  2. Click Main Menu image, choose File > New > Project.

    z1

  3. In the New Project dialog box, enter a project name, for example, MaxCompute_test.

    z2

  4. In the New Project window, click New image > Driver.

    z3

  5. On the Data Sources and Drivers page, select the Drivers tab, click image to create a User Driver, and enter a driver name such as MaxCompute.

  6. In the Driver Files section, click image > Custom JAR. Select the downloaded JAR file, for example, odps-jdbc-3.9.0-rc4-jar-with-dependencies.jar.

    ParameterDescription
    NameThe driver name, such as MaxCompute.
    ClassAfter uploading the JAR file, select com.aliyun.odps.jdbc.OdpsDriver from the drop-down list.

    z7

  7. Go to the Data Sources tab, click image, and select the driver you just added, such as MaxCompute.

  8. On the General tab, fill in the connection details.

    ParameterDescription
    NameThe data source name. Defaults to the driver name. You can customize it.
    AuthenticationSelect User & Password.
    UserYour AccessKey ID. Retrieve it from the AccessKey page.
    PasswordThe AccessKey secret that corresponds to your AccessKey ID.
    URLThe JDBC connection URL. See the URL format below.

    URL format:

    jdbc:odps:<MaxCompute_endpoint>?project=<MaxCompute_project_name>[&interactiveMode={true|false}][&useProjectTimeZone={true|false}]

    Parameters in the URL:

    • <MaxCompute_endpoint>: Required. The endpoint of MaxCompute for the region where your project resides. See Endpoint for endpoint addresses by region.

    • <MaxCompute_project_name>: Required. The name of your MaxCompute project — not the DataWorks workspace name. To find it, log on to the MaxCompute console, select your region in the navigation bar, and go to Workspace > Projects.

    • interactiveMode: Optional. This parameter specifies whether to enable the MaxCompute Query Acceleration (MCQA) feature. Append &interactiveMode=true to the URL to enable it. For more information, see Query acceleration.

    • useProjectTimeZone: Optional. Set to true to use the MaxCompute project's time zone in DataGrip. Append &useProjectTimeZone=true to the URL.

  9. Click Test Connection to verify the configuration.

    z6

  10. Click OK to save the configuration.

Step 2: Manage the MaxCompute project with DataGrip

Once connected, the MaxCompute connection appears in the left-side panel. Write and run SQL scripts to manage your MaxCompute project. For full DataGrip capabilities, see DataGrip Help.

Common operations:

  • View all tables: Expand the MaxCompute connection in the left-side panel to browse all tables.

    z8

  • Query a table schema: Right-click a table under the MaxCompute connection, choose New > Query Console, and run a query to inspect the schema.

    z9

  • Query table data: Right-click a table under the MaxCompute connection, choose New > Query Console, and run a query to retrieve table data.

    z10