I am creating spark output files using sqlcontext but the files created have only read permissions , how would I create file with full permissions . I tried the below but no luck, please help. I am using spark 1.4.1 with scala.
val sc = new SparkContext(sparkConf)
val hConf = sc.hadoopConfiguration
In the job, you have to access the JavaSparkContext and from there get the Hadoop configuration and set the parameter there. For example: