xushiyan commented on code in PR #13259:
URL: https://github.com/apache/hudi/pull/13259#discussion_r2074485654
##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/util/FlinkClientUtil.java:
##########
@@ -56,6 +67,22 @@ 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)) {
+ confDir = System.getenv(ApplicationConstants.Environment.PWD.key());
Review Comment:
@HuangZhenQiu So this is yarn-specific logic, we would need to add a comment
here to clarify it.
> Yes, it is by default how Flink Yarn load Flink configuration.
>
>
https://github.com/apache/flink/blob/master/flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnApplicationClusterEntryPoint.java#L76
--
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]