Skip to content

Commit 30b0ee5

Browse files
author
Marcelo Vanzin
committed
Re-use the thread created for running the gateway.
1 parent d0df92f commit 30b0ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/PythonRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ object PythonRunner {
4949
val gatewayServer = new py4j.GatewayServer(null, 0)
5050
val thread = new Thread(new Runnable() {
5151
override def run(): Unit = Utils.logUncaughtExceptions {
52-
gatewayServer.start()
52+
gatewayServer.start(false)
5353
}
5454
})
5555
thread.setName("py4j-gateway")

0 commit comments

Comments
 (0)