Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support specify more executor plugins, such as gluten. #1937

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading