Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/2129#discussion_r16757019
--- Diff:
core/src/main/scala/org/apache/spark/deploy/SparkSubmitDriverBootstrapper.scala
---
@@ -133,17 +133,24 @@ private[spark] object SparkSubmitDriverBootstrapper {
val process = builder.start()
// Redirect stdin, stdout, and stderr to/from the child JVM
- val stdinThread = new RedirectThread(System.in,
process.getOutputStream, "redirect stdin")
val stdoutThread = new RedirectThread(process.getInputStream,
System.out, "redirect stdout")
val stderrThread = new RedirectThread(process.getErrorStream,
System.err, "redirect stderr")
- stdinThread.start()
stdoutThread.start()
stderrThread.start()
- // Terminate on broken pipe, which signals that the parent process has
exited. This is
- // important for the PySpark shell, where Spark submit itself is a
python subprocess.
- stdinThread.join()
- process.destroy()
+ // In Windows, the subprocess reads directly from our stdin, so we
should avoid spawning
--- End diff --
Is there any public location where this behavior is specified?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]