if this script is your user-data on aws, or you run it as root on something with yum, it will boostrap a single node instance of spark for you