TJX2014 commented on code in PR #6207:
URL: https://github.com/apache/hudi/pull/6207#discussion_r959283718
##########
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:
Ok, I will fix the test code module later, seems other issues in hudi-flink
module I need to fix.
--
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]