To change the default queue to which the application is submitted, you can use the below command and replace the value with the name of the queue you want to use.
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.yarn.queue=<name of queue>