baibaichen commented on code in PR #6037:
URL: https://github.com/apache/incubator-gluten/pull/6037#discussion_r1634545955
##########
backends-clickhouse/src/main/scala/org/apache/gluten/backendsapi/clickhouse/CHListenerApi.scala:
##########
@@ -48,7 +48,11 @@ class CHListenerApi extends ListenerApi with Logging {
override def onExecutorStart(pc: PluginContext): Unit = {
GlutenExecutorEndpoint.executorEndpoint = new
GlutenExecutorEndpoint(pc.executorID, pc.conf)
- initialize(pc.conf, isDriver = false)
+ if (pc.conf().get("spark.master").startsWith("local")) {
+ logDebug("Skipping duplicate initializing clickhouse backend on spark
local mode")
+ } else {
Review Comment:
可以使用 `org.apache.spark.util.UtilsisLocalMaster()` 吗?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]