You need to set the secret key that you want to use for authentication. After you have enabled authentication, set the secret key as follows:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.authenticate.secret= <secret key>