aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgravescs <tgraves_cs@yahoo.com>2013-11-08 10:07:15 -0600
committertgravescs <tgraves_cs@yahoo.com>2013-11-08 10:07:15 -0600
commitf95cb04e4009f25f6b466173fcab24bd861acb24 (patch)
treeb3eece4e8d89b742a7ce0ae4341b2d289e554929
parent5f9ed51719c294626087a86c2bcceea7ba2f698b (diff)
downloadspark-f95cb04e4009f25f6b466173fcab24bd861acb24.tar.gz
spark-f95cb04e4009f25f6b466173fcab24bd861acb24.tar.bz2
spark-f95cb04e4009f25f6b466173fcab24bd861acb24.zip
Remove the runAsUser as it breaks secure hdfs access
-rw-r--r--core/src/main/scala/org/apache/spark/executor/Executor.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/executor/Executor.scala b/core/src/main/scala/org/apache/spark/executor/Executor.scala
index 5c9bb9db1c..0a4f10c940 100644
--- a/core/src/main/scala/org/apache/spark/executor/Executor.scala
+++ b/core/src/main/scala/org/apache/spark/executor/Executor.scala
@@ -179,7 +179,10 @@ private[spark] class Executor(
}
}
- override def run(): Unit = SparkHadoopUtil.get.runAsUser(sparkUser) { () =>
+ // the runAsUser breaks secure HDFS access. It needs to add the credentials
+ // for the user if running as a user. Comment out for now.
+ //override def run(): Unit = SparkHadoopUtil.get.runAsUser(sparkUser) { () =>
+ override def run(): Unit = {
val startTime = System.currentTimeMillis()
SparkEnv.set(env)
Thread.currentThread.setContextClassLoader(replClassLoader)