Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/pyspark/java_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def preexec_func():
raise Exception("Launching GatewayServer failed with exit code %d: %s" %
(error_code, "".join(proc.stderr.readlines())))

# close stderr, otherwise it fills an internal buffer and causes SPARK-2244
# TODO: work out a -verbose option and create EchoOutputThread(proc.stderr).start() instead
proc.stderr.close()

# Create a thread to echo output from the GatewayServer, which is required
# for Java log output to show up:
class EchoOutputThread(Thread):
Expand Down