All Products
Search
Document Center

E-MapReduce:Script

Last Updated:Oct 15, 2024
ParameterTypeDescriptionExample
object
ScriptNamestring

The name of the script. This parameter is required. The name must be 1 to 64 characters in length and must start with a letter. The name cannot start with http:// or https://. The name can contain letters, digits, underscores (_), and hyphens (-).

Script name -1
ScriptPathstring

The Object Storage Service (OSS) path in which the script is stored. This parameter is required. The path must start with oss://.

oss://bucket1/update_hosts.sh
ScriptArgsstring

The runtime parameters of the script. This parameter is optional.

-host 10.0.10.5 -m 30
Prioritydeprecatedinteger
Note This parameter is deprecated. The sequence in which scripts are executed is the same as the sequence in which scripts are defined.
1
NodeSelectorNodeSelector

The node selector.

ExecutionMomentstring

The time based on which the system executes the script. Valid values:

  • BEFORE_INSTALL: The system executes the script before the application is installed.
  • AFTER_STARTED: The system executes the script after the application is started.
BEFORE_INSTALL
ExecutionFailStrategystring

The policy that is used to handle an execution failure of the script. Valid values:

  • FAILED_CONTINUE: After the script fails to be executed, the system continues to perform the creation or scale-out operation on the cluster.
  • FAILED_BLOCK: After the script fails to be executed, the system stops performing the creation or scale-out operation on the cluster.
FAILED_CONTINUE