Running the Bootstrap Script

Run a shell-based bootstrap script on all the cluster nodes. A Python-based bootstrap script can only be executed from mn0, however, you can use Python-based bootstrap helper functions to run them on multiple nodes. This script can be executed on demand from a Big Data Service cluster. You can employ this script to install, configure, and manage custom components in a cluster.

Note

The custom bootstrap script is run as an opc user. To run a command that needs root access, add sudo.

For more information on shell, Python, and cluster bootstrap helper functions, see Bootstrap Script Helper Functions.

    1. Open the navigation menu and click Analytics & AI. Under Data Lake, click Big Data Service.
    2. Under Compartment, select the compartment that contains the cluster.
    3. In the list of clusters, click the name of the cluster.
    4. On the Cluster details page, click More Actions, and then select Execute bootstrap script URL.
    5. In the Execute bootstrap script URL panel, enter the updated URL and cluster administrator password, and then click Execute.
      Note

      The updated script is runs only when the shape of the cluster changes, or when you add or remove nodes from a cluster.
  • Use the oci bds instance execute-bootstrap-script command and required parameters to execute the bootstrap script.

    oci bds instance execute-bootstrap-script --bds-instance-id <bds_instance_id> --cluster-admin-password <cluster_admin_password> [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Big Data.

  • Use the ExecuteBootstrapScript operation to execute the bootstrap script.