GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/11806
[MINOR][SQL] Use Hadoop 2.0 default value for compression in data sources. ## What changes were proposed in this pull request? Currently, JSON, TEXT and CSV data sources use `CompressionCodecs` class to set compression configurations via `option("compress", "codec")`. I made this uses Hadoop 1.x default value (block level compression). However, the default value in Hadoop 2.x is record level compression as described in [mapred-site.xml](https://hadoop.apache.org/docs/r2.7.1/hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml). Since it drops Hadoop 1.x, it will make sense to use Hadoop 2.x default values. ## How was this patch tested? Via `./dev/run_tests` and unit tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark minor-compression Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/11806.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #11806 ---- commit 80749a84d60ce7c3c9bbcd6af72a40d7f90c80c3 Author: hyukjinkwon <gurwls...@gmail.com> Date: 2016-03-18T00:13:32Z Use Hadoop 2.0 default value for compression ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org