rmcyang commented on a change in pull request #34158:
URL: https://github.com/apache/spark/pull/34158#discussion_r719742176



##########
File path: core/src/main/scala/org/apache/spark/util/Utils.scala
##########
@@ -2627,6 +2627,37 @@ private[spark] object Utils extends Logging {
     }
   }
 
+  // Create an instance of the class with the given name, possibly 
initializing it with our conf
+  def instantiateClass[T](className: String, conf: SparkConf, isDriver: 
Boolean): T = {

Review comment:
       Oh, we cannot really make it private since it is used in 
SparkEnv.scala:314.
   ```
   [error] 
/home/runner/work/spark/spark/core/src/main/scala/org/apache/spark/SparkEnv.scala:314:32:
 method instantiateClass in object Utils cannot be accessed in object 
org.apache.spark.util.Utils
   [error]     val shuffleManager = 
Utils.instantiateClass[ShuffleManager](shuffleMgrClass, conf, isDriver)
   ```




-- 
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]

Reply via email to