[
https://issues.apache.org/jira/browse/STORM-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018740#comment-15018740
]
ASF GitHub Bot commented on STORM-885:
--------------------------------------
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
> Heartbeat Server (Pacemaker)
> ----------------------------
>
> Key: STORM-885
> URL: https://issues.apache.org/jira/browse/STORM-885
> Project: Apache Storm
> Issue Type: Improvement
> Components: storm-core
> Reporter: Robert Joseph Evans
> Assignee: Kyle Nusbaum
>
> Large highly connected topologies and large clusters write a lot of data into
> ZooKeeper. The heartbeats, that make up the majority of this data, do not
> need to be persisted to disk. Pacemaker is intended to be a secure
> replacement for storing the heartbeats without changing anything within the
> heartbeats. In the future as more metrics are added in, we may want to look
> into switching it over to look more like Heron, where a metrics server is
> running for each node/topology. And can be used to aggregate/per-aggregate
> them in a more scalable manor.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)