yihua commented on code in PR #5841:
URL: https://github.com/apache/hudi/pull/5841#discussion_r894993943
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -535,11 +536,10 @@ object HoodieBaseRelation extends SparkAdapterSupport {
filters: Seq[Filter],
options: Map[String, String],
hadoopConf: Configuration): PartitionedFile =>
Iterator[InternalRow] = {
- val hadoopConfBroadcast =
- spark.sparkContext.broadcast(new SerializableConfiguration(hadoopConf))
+ val hadoopConfBroadcast = spark.sparkContext.broadcast(new
SerializableWritable(hadoopConf))
Review Comment:
`HoodieMergeOnReadRDD` also uses `SerializableWritable` for broadcasting
hadoop conf in Spark:
https://github.com/apache/hudi/blob/6621f3cdbba1d913a4bc7f534c4837d010f45fd9/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieMergeOnReadRDD.scala#L72
--
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]