Github user mengxr commented on a diff in the pull request: https://github.com/apache/spark/pull/22085#discussion_r211356840 --- Diff: core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala --- @@ -76,6 +77,15 @@ private[spark] abstract class BasePythonRunner[IN, OUT]( // TODO: support accumulator in multiple UDF protected val accumulator = funcs.head.funcs.head.accumulator + // Expose a ServerSocket to support method calls via socket from Python side. + private[spark] var serverSocket: Option[ServerSocket] = None + + // Authentication helper used when serving method calls via socket from Python side. + private lazy val authHelper = { + val conf = Option(SparkEnv.get).map(_.conf).getOrElse(new SparkConf()) --- End diff -- When `SparkEnv.get` returns null?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org