[
https://issues.apache.org/jira/browse/FLINK-7951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234436#comment-16234436
]
ASF GitHub Bot commented on FLINK-7951:
---------------------------------------
Github user steveloughran commented on a diff in the pull request:
https://github.com/apache/flink/pull/4926#discussion_r148328550
--- Diff:
flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
---
@@ -44,7 +44,9 @@
public static Configuration
getHadoopConfiguration(org.apache.flink.configuration.Configuration
flinkConfiguration) {
- Configuration result = new Configuration();
+ // the HdfsConfiguration adds per default hdfs-site.xml and
hdfs-default.xml
+ // as a default resource which is read from the class path
+ Configuration result = new HdfsConfiguration();
--- End diff --
It's not mandatory to load in HDFSConfiguration, as trying to connect to
HDFS via FileSystem.get(hdfs://) kicks all this off.
> YarnApplicationMaster does not load HDFSConfiguration
> -----------------------------------------------------
>
> Key: FLINK-7951
> URL: https://issues.apache.org/jira/browse/FLINK-7951
> Project: Flink
> Issue Type: Bug
> Components: YARN
> Affects Versions: 1.4.0
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
> Priority: Critical
> Fix For: 1.4.0
>
>
> When instantiating the {{YarnConfiguration}} we do not load the corresponding
> {{HDFSConfiguration}}. This causes that we do not read the {{hdfs-site.xml}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)