Merge pull request #821 from pwendell/print-launch-command

Print run command to stderr rather than stdout
This commit is contained in:
Matei Zaharia 2013-08-13 15:31:01 -07:00
commit d316af9c84

View file

@ -170,10 +170,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