Skip to content

Commit

Permalink
inherit IO (apache#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxish committed Jul 24, 2017
1 parent 2b1a99d commit 457ebd8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ private[spark] class KubernetesSparkRestServer(
command += s"-Xmx$driverMemory"
command += mainClass
command ++= appArgs
val pb = new ProcessBuilder(command: _*)
Paths.get(sparkHome, "logs").toFile.mkdirs
pb.redirectOutput(Paths.get(sparkHome, "logs", "stdout").toFile)
pb.redirectError(Paths.get(sparkHome, "logs", "stderr").toFile)
val pb = new ProcessBuilder(command: _*).inheritIO()
val process = pb.start()
ShutdownHookManager.addShutdownHook(() => {
logInfo("Received stop command, shutting down the running Spark application...")
Expand Down

0 comments on commit 457ebd8

Please sign in to comment.