danny0405 commented on code in PR #10495:
URL: https://github.com/apache/hudi/pull/10495#discussion_r1451646629
##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/testutils/SparkClientFunctionalTestHarness.java:
##########
@@ -201,6 +203,18 @@ public synchronized void runBeforeEach() {
SparkRDDReadClient.addHoodieSupport(sparkConf);
spark = SparkSession.builder().config(sparkConf).getOrCreate();
sqlContext = spark.sqlContext();
+
+ try {
+ // Clean the default Hadoop configurations since in our Hudi tests
they are not used.
+ SparkContext sparkContext = spark.sparkContext();
+ Field hadoopConfigurationField =
sparkContext.getClass().getDeclaredField("_hadoopConfiguration");
+ hadoopConfigurationField.setAccessible(true);
Review Comment:
Looks like we have duplicates codes, maybe we can write it as an utility.
--
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]