All Products
Search
Document Center

E-MapReduce:Script

Last Updated:May 28, 2026

Parameter

Type

Description

Example

object

ScriptName

string

The required script name. The name must be 1 to 64 characters long and start with a letter or a Chinese character. It cannot start with http:// or https://. It can contain Chinese characters, letters, numbers, underscores (_), or hyphens (-).

Script name -1

ScriptPath

string

The required path to the script in Object Storage Service (OSS). The path must start with oss://.

oss://bucket1/update_hosts.sh

ScriptArgs

string

The optional script execution arguments.

-host 10.0.10.5 -m 30

Priority

integer

Note

This parameter is deprecated. Scripts run in the order they are defined.

1

NodeSelector NodeSelector

Specifies the nodes on which the script runs.

ExecutionMoment

string

The execution timing for the script. Valid values:

  • BEFORE_INSTALL: The script runs before applications are installed.

  • AFTER_STARTED: The script runs after applications start.

BEFORE_INSTALL

ExecutionFailStrategy

string

The execution failure strategy. Valid values:

  • FAILED_CONTINUE: If the script fails, cluster creation or scaling continues.

  • FAILED_BLOCK: If the script fails, cluster creation or scaling is blocked.

FAILED_CONTINUE