aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-08-13 15:07:03 -0700
committerPatrick Wendell <pwendell@gmail.com>2013-08-13 15:07:03 -0700
commita7feb69ae872b39a24aaec3ffde214367240ca0a (patch)
tree4df26033ac83ce340a50b7ae5068e182800d59cd /core
parent3970b580c206d58189ade3930aca1e478bff8c84 (diff)
downloadspark-a7feb69ae872b39a24aaec3ffde214367240ca0a.tar.gz
spark-a7feb69ae872b39a24aaec3ffde214367240ca0a.tar.bz2
spark-a7feb69ae872b39a24aaec3ffde214367240ca0a.zip
Print run command to stderr rather than stdout
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/spark/deploy/worker/ExecutorRunner.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/spark/deploy/worker/ExecutorRunner.scala b/core/src/main/scala/spark/deploy/worker/ExecutorRunner.scala
index 7423eca11e..a5ea4fe839 100644
--- a/core/src/main/scala/spark/deploy/worker/ExecutorRunner.scala
+++ b/core/src/main/scala/spark/deploy/worker/ExecutorRunner.scala
@@ -169,10 +169,10 @@ private[spark] class ExecutorRunner(
// Redirect its stdout and stderr to files
val stdout = new File(executorDir, "stdout")
- Files.write(header, stdout, Charsets.UTF_8)
redirectStream(process.getInputStream, stdout)
val stderr = new File(executorDir, "stderr")
+ Files.write(header, stderr, Charsets.UTF_8)
redirectStream(process.getErrorStream, stderr)
// Wait for it to exit; this is actually a bad thing if it happens, because we expect to run