Github user d2r commented on a diff in the pull request: https://github.com/apache/storm/pull/838#discussion_r45515535 --- Diff: storm-core/src/jvm/backtype/storm/security/auth/AuthUtils.java --- @@ -68,6 +74,37 @@ public static Configuration GetConfiguration(Map storm_conf) { } /** + * Pull a set of keys out of a Configuration. + * @param configs_to_pull A set of config keys that you want the values of. + * @param conf The config to pull the key/value pairs out of. + * @param conf_entry The app configuration entry name to get stuff from. + * @return Return a map of the configs in configs_to_pull to their values. + */ + public static SortedMap<String, ?> PullConfig(Configuration conf, + String conf_entry) throws IOException { + if(conf == null) { + return null; + } + AppConfigurationEntry configurationEntries[] = conf.getAppConfigurationEntry(conf_entry); + if(configurationEntries == null) { + String errorMessage = "Could not find a '" + conf_entry + + "' entry in this configuration: Client cannot start."; + throw new IOException(errorMessage); + } + + TreeMap<String, Object> results = new TreeMap<>(); + + --- End diff -- extra line
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---