yaooqinn commented on code in PR #45740:
URL: https://github.com/apache/spark/pull/45740#discussion_r1542229026


##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -420,6 +420,14 @@ class SparkContext(config: SparkConf) extends Logging {
     // HADOOP-19097 Set fs.s3a.connection.establish.timeout to 30s
     // We can remove this after Apache Hadoop 3.4.1 releases
     conf.setIfMissing("spark.hadoop.fs.s3a.connection.establish.timeout", 
"30s")
+    try {
+      // Try to enable Magic Committer by default for all buckets
+      
Utils.classForName("org.apache.spark.internal.io.cloud.PathOutputCommitProtocol")

Review Comment:
   Use `Utils.classIsLoadable`?



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to