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. On the Clusters list page, select the cluster that you want to work with. If you need help finding the list page or the cluster, see Listing Clusters in a Compartment.
    2. On the Cluster details page, select More Actions.
    3. Select Execute bootstrap script URL.
    4. In the Execute bootstrap script URL panel, enter the following, and then select Execute.
      • Bootstrap script URL: Provide a publicly accessible URL of the bootstrap script. Or, upload the bootstrap script to an object store bucket, generate a Pre-Authenticated URL (PAURL), and use it here.
      • Cluster Admin Password: Input the password for the cluster administrator.
      Note

      The updated script 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.