viirya commented on code in PR #45740:
URL: https://github.com/apache/spark/pull/45740#discussion_r1542253614
##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -420,6 +420,10 @@ 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")
+ // Enable Magic Committer by default for all S3 buckets if hadoop-cloud
module exists
+ if
(Utils.classIsLoadable("org.apache.spark.internal.io.cloud.PathOutputCommitProtocol"))
{
+
conf.setIfMissing("spark.hadoop.fs.s3a.bucket.*.committer.magic.enabled",
"true")
+ }
Review Comment:
If the class is not there, will setting the config cause any problem?
--
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]