[ https://issues.apache.org/jira/browse/FLINK-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855790#comment-15855790 ]
Robert Metzger commented on FLINK-1588: --------------------------------------- Thank you for looking into the issue. I would load the configuration using {{getClassLoader().getResource("/flink-config.yaml")}}, with the regular file from the configDir having precedence over the classloaded file. So the config dir file can overwrite settings loaded from the CL. Also, could you add the classloader-based mechanism into the {{LocalEnvironment}} class? Right now, there's a constructor variant that is initializing an empty config object. Instead of doing that, we could try to load the config from the classloader. if its not available, we return an empty config. If you think it really doesn't make any sense I'm also happy to close the issue as invalid. The JIRA is almost two years old, and back then, there was no way to inject a custom config locally. We now have the programatical approach to pass a Configuration object , so this is not really necessary (but maybe nice to have). > 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)