From http://spark.apache.org/docs/latest/spark-standalone.html#cluster-launch-scripts :
If you do not have a password-less setup, you can set the environment > variable SPARK_SSH_FOREGROUND and serially provide a password for each > worker. > What does "serially provide a password for each worker mean"? can it be something like this (assume I have 3 workers): SPARK_SSH_FOREGROUND=worker1pass,worker2pass,worker3pass