Updated on 2023-08-11 GMT+08:00

MRS.BootstrapScripts

Property Description

Table 1 Property description

Property

Required

Type

Description

activeMaster

No

boolean

Whether the bootstrap action script runs only on active Master nodes.

Value Constraint: The default value is false, indicating that the bootstrap action script can run on all Master nodes.

name

Yes

string

Name of a bootstrap action script

Value Constraint: A name of a bootstrap action script must be unique in a cluster. The value can contain only digits, letters, spaces, hyphens (-), and underscores (_) and cannot start with a space. The value can contain a maximum of 1 to 64 characters.

beforeComponentStart

No

boolean

Time when the bootstrap action script is executed.

Value Constraint: Currently, the script can be executed before and after the component is started. The default value is false, indicating that the bootstrap action script is executed after the component is started.

uri

Yes

string

Path of a bootstrap action script

Value Constraint: Set this parameter to an OBS bucket path or a local VM path. For an OBS bucket path, enter a script path manually. For example, enter the path of the public sample script provided by MRS, such as s3a://bootstrap/presto/presto-install.sh. If dualroles is installed, the parameter of the presto-install.sh script is dualroles. If worker is installed, the parameter of the presto-install.sh script is worker. Based on the Presto usage habit, you are advised to install dualroles on the active Master nodes and worker on the Core nodes. For a local VM path, enter a script path. The script path must start with a slash (/) and end with .sh.

failAction

Yes

string

Whether to continue to execute subsequent scripts and create a cluster after the bootstrap action script fails to be executed.

Value Constraint: The value can only be continue or errorout.

Suggestion: You are advised to set this parameter to continue in the debugging phase so that the cluster can continue to be installed and started no matter whether the bootstrap action is successful.

nodes

Yes

string

Type of a node where the bootstrap action script is executed

Value Constraint: Node types are Master, Core, and Task.

parameters

No

string

Bootstrap action script parameters