Exemple #1
0
  /** start supervisor */
  public void run() {

    SupervisorManger supervisorManager = null;
    try {
      Map<Object, Object> conf = Utils.readStormConfig();

      StormConfig.validate_distributed_mode(conf);

      supervisorManager = mkSupervisor(conf, null);

    } catch (Exception e) {
      LOG.error("Failed to start supervisor\n", e);
      System.exit(1);
    }

    while (supervisorManager.isFinishShutdown() == false) {
      try {
        Thread.sleep(1000);
      } catch (InterruptedException e) {

      }
    }
  }