GitHub user tgravescs opened a pull request: https://github.com/apache/spark/pull/10651
[SPARK-12654] sc.wholeTextFiles with spark.hadoop.cloneConf=true fail⦠â¦s on secure Hadoop https://issues.apache.org/jira/browse/SPARK-12654 So the bug here is that WholeTextFileRDD.getPartitions has: val conf = getConf in getConf if the cloneConf=true it creates a new Hadoop Configuration. Then it uses that to create a new newJobContext. The newJobContext will copy credentials around, but credentials are only present in a JobConf not in a Hadoop Configuration. So basically when it is cloning the hadoop configuration its changing it from a JobConf to Configuration and dropping the credentials that were there. NewHadoopRDD just uses the conf passed in for the getPartitions (not getConf) which is why it works. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tgravescs/spark SPARK-12654 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/10651.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 #10651 ---- commit 9582e49a5a5a5de2aed3c56adbd6ec54651115b4 Author: Thomas Graves <tgra...@staydecay.corp.gq1.yahoo.com> Date: 2016-01-07T21:01:51Z [SPARK-12654] sc.wholeTextFiles with spark.hadoop.cloneConf=true fails on secure Hadoop ---- --- 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