6.5 Creating Spark Master VMs and Configuing a Spark Master on each VM
- Create 2 Spark Master VMs in the private regional subnet
your-private-regional-subnet
using the GGSA image. Spark Master VMs should be of same compute shape – Minimum shape is VM Standard 2.1.Note:
IP addresses of these Master VMs are required for subsequent steps. Save them as a space separated list, for example,Master VM IP List
. - SSH and execute the script
init-spark-master.sh
on each Master VM. The usage for the script is as follows and all arguments to the script must be separated by space.$OSA_HOME/osa-base/bin/init-spark-master.sh <MountTargetIP> < Worker VM IP List >
Example:
$OSA_HOME/osa-base/bin/init-spark-master.sh 10.0.1.73 10.0.0.45 10.0.0.46 10.0.0.47
On successful run, Spark Master processes must be running on Spark Master VMs.