-
Notifications
You must be signed in to change notification settings - Fork 595
[GLUTEN-9152][CORE] Avoid unnecessary serialization of hadoop conf #9153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
63a1346
ed3035a
6d423c9
9147532
fab6b38
cfc64a0
41904be
dd31d09
d6c6d0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,6 @@ import org.apache.spark.sql.execution._ | |
| import org.apache.spark.sql.execution.metric.SQLMetric | ||
| import org.apache.spark.sql.utils.SparkInputMetricsUtil.InputMetricsWrapper | ||
| import org.apache.spark.sql.vectorized.ColumnarBatch | ||
| import org.apache.spark.util.SerializableConfiguration | ||
|
|
||
| import com.google.common.collect.Lists | ||
| import org.apache.hadoop.fs.viewfs.ViewFileSystemUtils | ||
|
|
@@ -236,9 +235,6 @@ case class WholeStageTransformer(child: SparkPlan, materializeInput: Boolean = f | |
|
|
||
| val sparkConf: SparkConf = sparkContext.getConf | ||
|
|
||
| val serializableHadoopConf: SerializableConfiguration = new SerializableConfiguration( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If serialization is require, |
||
| sparkContext.hadoopConfiguration) | ||
|
|
||
| val numaBindingInfo: GlutenNumaBindingInfo = GlutenConfig.get.numaBindingInfo | ||
|
|
||
| @transient | ||
|
|
@@ -400,7 +396,7 @@ case class WholeStageTransformer(child: SparkPlan, materializeInput: Boolean = f | |
| val newPaths = ViewFileSystemUtils.convertViewfsToHdfs( | ||
| splitInfo.getPaths.asScala.toSeq, | ||
| viewfsToHdfsCache, | ||
| serializableHadoopConf.value) | ||
| sparkContext.hadoopConfiguration) | ||
| splitInfo.setPaths(newPaths.asJava) | ||
| } | ||
| } | ||
|
|
@@ -463,7 +459,7 @@ case class WholeStageTransformer(child: SparkPlan, materializeInput: Boolean = f | |
| val newPaths = ViewFileSystemUtils.convertViewfsToHdfs( | ||
| splitInfo.getPaths.asScala.toSeq, | ||
| viewfsToHdfsCache, | ||
| serializableHadoopConf.value) | ||
| sparkContext.hadoopConfiguration) | ||
| splitInfo.setPaths(newPaths.asJava) | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The serialize code is added for viewfs support as we need to pass some info to Velox. Not sure if the new code can be ser/de-ser and passed down.
The code itself is correct, but there is no viewfs related tests in GHA now so we may need to check this manually
Cc @wangyum @JkSelf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But from the code logic, I did not find that velox uses the hadoop conf here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wangyum Could you please help in verifying this PR in your ViewFS environment? My ViewFS test setup is currently not functioning properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. will test it soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this patch on our cluster and it still works.