All Products
Search
Document Center

MaxCompute:Manage resources in a visualized manner

Last Updated:Mar 26, 2026

When developing user-defined functions (UDFs) in MaxCompute Studio, you must upload dependency files—such as JAR files, Python scripts, compressed packages, and tables—as resources before creating a UDF. Project Explorer provides a visual interface to manage the full resource lifecycle: add, copy the local metadata path, and remove resources.

Prerequisites

Before you begin, ensure that you have:

  • MaxCompute Studio installed as a plugin in IntelliJ IDEA

  • A MaxCompute project connected in Project Explorer

Add a resource

  1. In the IntelliJ IDEA menu bar, choose MaxCompute > Add Resource.

  2. In the Add Resource dialog, configure the following parameters. Add resources other than table resources Add resources other than table resources Add table resources Add table resources

    Files of table resources cannot be obtained.
    ParameterDescription
    MaxCompute projectThe MaxCompute project to add the resource to. Select a project from the drop-down list. If the project is not listed, click the icon next to the list to add it.
    Resource typeThe type of resource. See Resource types for guidance on choosing the right type.
    Resource fileThe local file to upload. Required when Resource type is file, jar, py, or archive.
    MaxCompute tableThe table to add as a resource. Select from the drop-down list. For partitioned tables, MaxCompute takes a single partition as the resource, not the whole table.
    Table partitionThe partition to add. Required when MaxCompute table is a partitioned table. Format: partition_col1 = partition_col_value1, partition_col2 = partition_col_value2, ...
    Resource nameThe name to assign to the resource.
    Resource commentAn optional description of the resource.
    Force update if already existsWhen selected, the new resource overwrites any existing resource with the same name.
  3. Click OK.

  4. In Project Explorer, right-click the Resources folder and select Refresh meta. The resource appears in the resource list.

Resource types

Choose the resource type that matches your dependency:

Resource typeWhen to useSupported formats
jarJava-based UDF dependencies: compiled JAR files..jar
pyPython-based UDF dependencies: Python scripts..py
archiveUDFs that depend on a directory of files or a library bundle..zip, .tgz, .tar.gz, .tar, .jar
fileFile resources..zip, .so, .jar
tableUDFs that read from a MaxCompute table at runtime. Only a single partition can be added—partitioned tables cannot be added in full. Local file retrieval is not supported for this type.

Copy a resource file path

After adding a resource, copy its local metadata path to locate the file on disk.

This operation is not supported for table resources.
  1. In Project Explorer, expand the Resources folder for your MaxCompute project.

  2. Right-click the resource file and select Copy local meta path.

    Obtain a resource file

The path is copied to your clipboard. You can then obtain the resource file from that path.

Remove a resource

  1. In Project Explorer, expand the Resources folder for your MaxCompute project.

  2. Right-click the resource and select Delete resource from server.

    Remove a resource

  3. In the Confirmation Required dialog, click OK.

  4. Right-click the Resources folder and select Refresh meta. The resource no longer appears in the list.