Skip to content

Commit 1010acc

Browse files
authored
Revert "Move RBackend to member variable" (apache-spark-on-k8s#345)
1 parent bb10a57 commit 1010acc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ import org.apache.spark.util.RedirectThread
4040
* subprocess and then has it connect back to the JVM to access system properties etc.
4141
*/
4242
object RRunner extends CondaRunner with Logging {
43-
val sparkRBackend = new RBackend()
44-
4543
override def run(args: Array[String], maybeConda: Option[CondaEnvironment]): Unit = {
4644
val rFile = PythonRunner.formatPath(args(0))
4745

@@ -86,6 +84,7 @@ object RRunner extends CondaRunner with Logging {
8684

8785
// Launch a SparkR backend server for the R process to connect to; this will let it see our
8886
// Java system properties etc.
87+
val sparkRBackend = new RBackend()
8988
@volatile var sparkRBackendPort = 0
9089
val initialized = new Semaphore(0)
9190
val sparkRBackendThread = new Thread("SparkR backend") {

0 commit comments

Comments
 (0)