About the Cluster Bootstrap Script

To use the cluster bootstrap script, you must first write a shell script that contains your customizations and then upload the script to a location in Oracle Cloud Infrastructure Object Storage Classic. The script is executed as the last step in cluster provisioning.

The Big Data Cloud cluster looks for the script in two well-known locations in Oracle Cloud Infrastructure Object Storage Classic:

  • Location 1: swift://default_container.default/bdcsce/bootstrap/cluster_name/bootstrap.sh

  • Location 2: swift://default_container.default/bdcsce/bootstrap/bootstrap.sh

where default_container is the container associated as the default container for the cluster when the cluster was created, and cluster_name is the name of the cluster that was provided when the cluster was created.

The logic used to determine which script gets executed is as follows:

  • If a script is found in Location 1, the script gets executed.

  • If a script is not found in Location 1, Big Data Cloud attempts to load and execute a script from Location 2.

  • If a script is present in both locations, only the script in Location 1 gets executed.

The execution logic enables you to have a cluster-specific bootstrap script as well as a generic bootstrap script that applies to all provisioned clusters. The only requirement is that all of the clusters use the same storage container, which is specified during cluster provisioning.