xushiyan commented on code in PR #13259:
URL: https://github.com/apache/hudi/pull/13259#discussion_r2636226783


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/util/FlinkClientUtil.java:
##########
@@ -60,6 +71,20 @@ public static org.apache.hadoop.conf.Configuration 
getHadoopConf() {
     if (hadoopConf == null) {
       hadoopConf = new org.apache.hadoop.conf.Configuration();
     }
+
+    String confDir = System.getenv(FLINK_CONF_DIR);
+    if (!StringUtils.isNullOrEmpty(confDir)) {
+      LOG.info("Flink conf dir: {}", confDir);
+      try {
+        Configuration configuration = 
GlobalConfiguration.loadConfiguration(confDir);
+        for (Map.Entry<String, String> kv : 
ConfigurationUtils.getPrefixedKeyValuePairs(FLINK_HADOOP_CONFIG_PREFIX, 
configuration).entrySet()) {
+          hadoopConf.set(kv.getKey(), kv.getValue());
+        }
+      } catch (Exception e) {
+        Log.warn("Fail to load flink configuration from path {}", confDir, e);

Review Comment:
   ```suggestion
           LOG.warn("Fail to load flink configuration from path {}", confDir, 
e);
   ```
   
   and remove the imported `Log` 



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