[
https://issues.apache.org/jira/browse/FLINK-7951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234431#comment-16234431
]
ASF GitHub Bot commented on FLINK-7951:
---------------------------------------
Github user steveloughran commented on the issue:
https://github.com/apache/flink/pull/4926
ah. everything lives in Configuration, and is has some historical structure
based on the history of how things all got split up from one big hadoop-default;
1. You can register a new "Default" file to be scanned as part of the
resolution process; initially this is just core-default.xml.
1. when a new default XML file is added, its forced into the property set
of all existing configs.
The classes `HdfsConfiguration, YarnConfiguration, MRConfiguration` all
have a static initializer which registers their -default file.
This means that sometimes you need to create the configuration classes of
the things you work with in order to tip them into loading the configs you
need. Not ideal, and fun to debug.
Look at org.apache.hadoop.service.launcher.ServiceLauncher to see an
example of something force-loading in configs to avoid confusion here.
Don't try and submit all resources. Life gets very confusing there if the
back end has things like a linux FS and you are using windows. Even worse: if
you are using an older version of the hadoop JARs than your cluster, so your
`core-default.xml` is out of date. Only submit the changed stuff. Note that a
competent admin will have tagged really sensitive properties (max memory
allocations & things) as `final` so you can't override them even if you tried.
> 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)