TJX2014 commented on code in PR #6207:
URL: https://github.com/apache/hudi/pull/6207#discussion_r946496367
##########
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:
Seems test module should also go through
HadoopConfigurations.getHadoopConf?if not,test module seems not consistent with
hudi core module
--
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]