TJX2014 commented on code in PR #6207:
URL: https://github.com/apache/hudi/pull/6207#discussion_r935063834


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/utils/TestWriteBase.java:
##########
@@ -102,6 +103,23 @@ public class TestWriteBase {
         "id1,par1,id1,Danny,23,3,par1",
         "id1,par1,id1,Danny,23,4,par1",
         "id1,par1,id1,Danny,23,4,par1"));
+
+    removeHadoopConf();
+  }
+
+  private static void removeHadoopConf() {
+    Map<String, String> env = System.getenv();
+    Class<?> clazz = env.getClass();
+    Field field = null;
+    try {
+      field = clazz.getDeclaredField("m");
+      field.setAccessible(true);
+      Map<String, String> map = (Map<String, String>) field.get(env);
+      map.remove("HADOOP_CONF_DIR");

Review Comment:
   @danny0405 Seems a bug in test module, which should also respect 
HADOOP_CONF_DIR,or in hudi module should not rely on external env?



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