linliu-code commented on code in PR #10495:
URL: https://github.com/apache/hudi/pull/10495#discussion_r1453856894


##########
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:
   These two are different test harnesses. We may need to unify them later.



-- 
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]

Reply via email to