• MapReduce Service

  1. Help Center
  2. MapReduce Service
  3. User Guide
  4. Cluster Operation Guide
  5. Bootstrap Actions
  6. Adding a Bootstrap Action

Adding a Bootstrap Action

  1. Log in to the management console.
  2. Click Create Cluster. The Create Cluster page is displayed.
  3. On the Advanced Settings tab page, select Configure Now. The Bootstrap Action tab page is displayed.
  4. On Bootstrap Action tab page, click Add. The page is displayed, as shown in the following figure.

    Figure 1 Adding a bootstrap action
    Table 1 Parameters




    Name of a bootstrap action script

    The value can contain only digits, letters, spaces, hyphens (-), and underscores (_) and must not start with a space.

    The value can contain 1 to 64 characters.


    A name must be unique in the same cluster. You can set the same name for different clusters.

    Script Path

    Script path. The value can be an OBS bucket path or a local VM path.

    • An OBS bucket path must start with s3a:// and end with .sh. For example, the path of the example script for installing Zeppelin is as follows: s3a://mrs-samples-bootstrap-eu-de/zeppelin/zeppelin_install.sh
    • A local VM path must start with a slash (/) and end with .sh.

    Execution Node

    Select a type of the node where the bootstrap action script is executed.

    • If you select Master, you can choose whether to run the script only on the active Master nodes by enabling or disabling the switch .
    • If you enable it, the script is run only on the active Master nodes. If you disable it, the script is run on all Master nodes. This switch is disabled by default.


    Bootstrap action script parameters

    Execution Time

    Select the time when the bootstrap action script is executed. Currently, the following two options are available: Before component start and After component start

    Action upon Failure

    Indicates whether to continue to execute subsequent scripts and creating a cluster after the script fails to be executed.

    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.

  5. Click OK. The following information is displayed.

    Figure 2 Bootstrap action information

    After the bootstrap action is successfully added, you can edit or delete it in the Operation column.