Example #1
0
 private static Set<String> getKeyListFromId(String corruptId) {
   Set<String> keyLists = new HashSet<>();
   keyLists.add(ConfigUtils.masterStormCodeKey(corruptId));
   keyLists.add(ConfigUtils.masterStormConfKey(corruptId));
   if (!ConfigUtils.isLocalMode(conf)) {
     ConfigUtils.masterStormJarKey(corruptId);
   }
   return keyLists;
 }
Example #2
0
 private static void initialize() {
   conf = ConfigUtils.readStormConfig();
   nimbusBlobStore = Utils.getNimbusBlobStore(conf, NimbusInfo.fromConf(conf));
   List<String> servers = (List<String>) conf.get(Config.STORM_ZOOKEEPER_SERVERS);
   Object port = conf.get(Config.STORM_ZOOKEEPER_PORT);
   List<ACL> acls = null;
   if (Utils.isZkAuthenticationConfiguredStormServer(conf)) {
     acls = adminZkAcls();
   }
   try {
     stormClusterState =
         ClusterUtils.mkStormClusterState(conf, acls, new ClusterStateContext(DaemonType.NIMBUS));
   } catch (Exception e) {
     LOG.error("admin can't create stormClusterState");
     new RuntimeException(e);
   }
   CuratorFramework zk =
       Zookeeper.mkClient(conf, servers, port, "", new DefaultWatcherCallBack(), conf);
 }