Skip to content

Commit

Permalink
Ray序列化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
allwefantasy committed Sep 9, 2020
1 parent b344bc0 commit 61079a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamingpro-mlsql/src/main/java/tech/mlsql/ets/Ray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Ray(override val uid: String) extends SQLAlg with VersionCompatibility wit

targetLen = tempdf.rdd.partitions.length
logInfo(s"RayMode: Final TargetLen ${targetLen}")
val owner = ScriptSQLExec.context().owner
val _owner = ScriptSQLExec.context().owner

val thread = new Thread("temp-data-server-in-spark") {
override def run(): Unit = {
Expand All @@ -125,7 +125,7 @@ class Ray(override val uid: String) extends SQLAlg with VersionCompatibility wit
val tempSocketServerHost = tempSocketServerInDriver._host
val tempSocketServerPort = tempSocketServerInDriver._port
val timezoneID = session.sessionState.conf.sessionLocalTimeZone

val owner = _owner
tempdf.rdd.mapPartitions { iter =>

val host: String = if (SparkEnv.get == null || MLSQLSparkUtils.blockManager == null || MLSQLSparkUtils.blockManager.blockManagerId == null) {
Expand Down

0 comments on commit 61079a5

Please sign in to comment.