[
https://issues.apache.org/jira/browse/FLINK-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854230#comment-15854230
]
Patrick Lucas commented on FLINK-1588:
--------------------------------------
I have a [first pass
branch|https://github.com/patricklucas/flink/commits/FLINK-1588_load_config_from_classpath]
for this, but I have just a few questions about what we actually want here:
# Is the goal to search the directories on the classpath for a file named
"flink-config.yaml" (as my branch does) or load a resource using
getClassLoader().getResource("/flink-config.yaml") (requiring us to know the
exact resource path)
# Do we want to load config from the classpath as a fallback if the config dir
or config file don't exist, or do we want to somehow merge the configs?
# There's a [version of loadConfiguration with no
params|https://github.com/patricklucas/flink/commit/deb10d6a065817569fb5659a7a4091e5984d5e11#diff-0a9e260480028baad50a56024fc3e84aR75]
that currently returns an empty config object. Do we want to also search the
classpath here? I also notice that it does not inject "dynamic properties" like
the other overloaded method does, but since this one appears to be chiefly for
testing, perhaps that isn't a problem.
> Load flink configuration also from classloader
> ----------------------------------------------
>
> Key: FLINK-1588
> URL: https://issues.apache.org/jira/browse/FLINK-1588
> Project: Flink
> Issue Type: New Feature
> Components: Local Runtime
> Reporter: Robert Metzger
> Assignee: Patrick Lucas
>
> The GlobalConfiguration object should also check if it finds the
> flink-config.yaml in the classpath and load if from there.
> This allows users to inject configuration files in local "standalone" or
> embedded environments.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)