You can limit the spread out by setting the spreadout configuration to false. You can do it as follows:
Open spark shell and run the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.deploy.spreadOut=false