All Products
Search
Document Center

DataWorks:O&M Assistant

Last Updated:Mar 25, 2026

Install third-party packages for tasks running on exclusive resource groups for scheduling using O\&M Assistant. Use one-click installation for common packages or Shell commands for custom packages.

Prerequisites

Before you begin, ensure that you have:

How it works

O&M Assistant installs packages directly on the exclusive resource group for scheduling. Once installed, every task running on that resource group can use the package — no per-task configuration required.

Because the installation is resource-group-wide, a version conflict or compatibility issue affects all tasks on the group. Test packages in a non-production resource group before deploying to production.

Choose an installation method

Pick the method based on whether the package is in the DataWorks preset list:

Quick installationManual installation
When to usePackage is in the DataWorks preset listPackage is not in the preset list
CommandAuto-generated by DataWorksCustom Shell command you provide
pip supportSupported (DataWorks generates the command)Not supported — use yum or other tools
Supported categoriesPython 2, Python 3, YumAny package installable via Shell
Python packages installed via O&M Assistant work only for Python nodes (PyODPS 2 or PyODPS 3) running on the resource group. For MaxCompute Python User-Defined Functions (UDFs), see UDF example: Use third-party packages in Python UDFs.

Access O\&M Assistant

  1. Log on to the DataWorks console. In the top navigation bar, select the target region. In the left-side navigation pane, click Resource Group.

  2. On the Exclusive Resource Groups tab, find the resource group for Data Scheduling, click the image.png icon next to the Resource Group, and select O\&M Assistant.

Install a third-party package

Create an installation command

  1. On the O&M Assistant page, click Create Command and select an installation method.

    Quick installation

    Use this method for packages in the DataWorks preset list. DataWorks generates the Shell command automatically.

    image

    Parameters:

    ParameterDescription
    Command nameA custom identifier for the command.
    Command typeSelect Quick Installation.
    Package to installSelect the package and version. DataWorks includes common packages for Python 2, Python 3, and Yum — including aliyun-python-sdk-core, NumPy, and Pandas. See the interface for the full list.
    Generated Shell scriptDataWorks auto-generates the installation command. For example, selecting aliyun-python-sdk-core generates pip install aliyun-python-sdk-core.
    TimeoutMaximum execution time in seconds. The command stops if it exceeds this limit.

    Manual installation

    Use this method when the preset list does not include the package you need. Provide a custom Shell command.

    image

    ParameterDescription
    Command nameA custom identifier for the command.
    Command typeSelect Manual Installation.
    Command contentThe Shell command to run. Example: yum install -y git. Custom commands cannot use pip. Use absolute paths to reference packages, and test commands before running in production.
    Installation directoriesDirectory paths the command can access. Separate multiple paths with semicolons (;). DataWorks adds these to a whitelist. Install to /home/ or non-/home/ directories. For /home/ installations, use /home/admin/usertools/tools/. Default: /home/admin/usertools/tools/.
    TimeoutMaximum execution time in seconds. The command stops if it exceeds this limit.
  2. Click OK to save the command.

You cannot modify existing commands after saving. To change a command, delete it and create a new one.

Run the installation command

On the O&M Assistant page, find the command and click Run command in the Actions column. The system generates a command execution record.

Verify the installation

In the command execution record, check Execution Status and Command Content. If the command fails, click View Result in the Actions column to review the logs.

image

After successful installation, the package is available to all tasks running on that resource group.

View the environment configuration

On the O&M Assistant page, click View Detailed Environment Configuration in the upper-left corner to see all installed packages, versions, and statuses for the current resource group.

Use installed packages in a task node

After installing a package, configure the task node to run on the same exclusive resource group.

New version of Data Studio

  1. Go to the DataWorks Workspaces page, switch to the target region, find your workspace, and click Shortcuts > DataStudio.

  2. In the task node, click Scheduling in the right pane. Set Resource Group to Exclusive Resource Group for Scheduling. > If the target resource group is not listed, go to the Resource Group page and click Associate Workspace.

  3. In the Run Configuration pane, configure Computing Resource, Resource Group, and Script Parameters, then click Running Duration in the toolbar to debug the node.

  4. Click Publish in the toolbar to deploy the node to production.

Legacy version of DataStudio

  1. Log on to the DataWorks console, switch to the target region, click Data Development and O\&M > Data Development, select your workspace, and click Go to Data Development.

  2. In the task node, click Properties in the right pane. Set Resource Group to Exclusive Resource Group for Scheduling. > If the target resource group is not listed, go to the Resource Group page and click Associate Workspace.

  3. Click Run with Parameters (image), configure Resource Group Name, and click Run.

  4. Click Save and Submit to deploy the node to production.

What's next