Skip to content

Commit

Permalink
feat: support specify more executor plugins, such as gluten.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaozwn committed Feb 25, 2024
1 parent 87f0e2d commit 647f712
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,14 @@ class SparkRuntime(_params: JMap[Any, Any]) extends StreamingRuntime with Platfo
// In spark3, The org.apache.spark.ExecutorPlugin interface and related configuration has been
// replaced with org.apache.spark.api.plugin.SparkPlugin.
MLSQLSparkConst.majorVersion(SparkCoreVersion.exactVersion) match {
case 2 =>
conf.set("spark.executor.plugins", "org.apache.spark.ps.cluster.PSExecutorPlugin")
case _ =>
conf.set("spark.plugins", "org.apache.spark.ps.cluster.PSExecutorPlugin")
case 2 => {
val plugins = conf.get("spark.executor.plugins", "").split(",").toSet
conf.set("spark.executor.plugins", (plugins + "org.apache.spark.ps.cluster.PSExecutorPlugin").mkString(","))
}
case _ => {
val plugins = conf.get("spark.plugins", "").split(",").toSet
conf.set("spark.plugins", (plugins + "org.apache.spark.ps.cluster.PSExecutorPlugin").mkString(","))
}
}


Expand Down

0 comments on commit 647f712

Please sign in to comment.