Shell Based Bootstrap Helper Functions

Shell script based bootstrap helper functions exist to update Ambari configurations.

Note

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

The following event types are supported for the bootstrap script. For usage example, see Shell Script Examples.

  • CreateBdsInstance
  • on-demand
  • AddWorkerNodes
  • ChangeShape
  • StartBdsInstance

To run a bootstrap script, see Running the Bootstrap Script.

For more information on shell script bootstrap helper functions, see:

Bootstrap Shell Script Helper Functions

For more information on shell bootstrap script, see Shell Based Bootstrap Helper Functions.

For shell script helper function examples, see Shell Script Examples.

To run a bootstrap script, see Running the Bootstrap Script.

Helper Function Functionality
$getClusterName Displays the cluster name.
$getAllNodesIps Displays a space-separated list of IPs of all the nodes.
$getUtilityNodesIps Displays a space-separated list of IPs of the utility nodes.
$getWorkerNodesIps Displays a space-separated list of IPs of the worker nodes.
$getMasterNodesIps Displays a space-separated list of IPs of the master nodes.
$getQueryServerNodesIps Displays a space-separated list of IPs of the query server nodes.
$eventType Displays the event type that initiated the bootstrap script.

Shell Script Examples

For more information on the shell script helper functions, see Bootstrap Shell Script Helper Functions.