Some useful script for ec2 cluster with Spark