Question: I am making API with **hapi-swagger** and I have implemented basic-authentication. But even if user doesn't have authentication he can still view my **documentation page**. I want to prevent him from viewing my **documentation page**. How can I implement basic auth on swagger documentation page?
[I want to hide this page and ask for authentication credentials before rendering documentation](http://i.stack.imgur.com/Ukx5I.png)

Answer: 
You can use: `sparkContext.hadoopConfiguration.set("mapreduce.fileoutputcommitter.algorithm.version", "2")`

since you are on EMR just use s3 (no need for s3a)

We are using Spark 2.0 and writing Parquet to S3 pretty fast (about as fast as HDFS)

if you want to read more check out this jira ticket [SPARK-10063](https://issues.apache.org/jira/browse/SPARK-10063)
I think the S3 committer from Netflix is already open sourced at: <https://github.com/rdblue/s3committer>.