Run the following command in Spark shell to clone the Hadoop configurations.
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.hadoop.cloneConf=true
This will clone the Hadoop configuration for each task