Exemple #1
0
  /** Shut down the cluster */
  public void shutDown() throws IOException, InterruptedException {
    System.out.println("Shutting down the Mini Avatar Cluster");
    // this doesn't work, so just leave the datanodes running,
    // they won't interfere with the next run
    shutDownDataNodes();

    shutDownAvatarNodes();
  }
Exemple #2
0
  public void restartAvatarNodes() throws Exception {
    shutDownAvatarNodes();
    for (NameNodeInfo nni : this.nameNodes) {
      nni.avatars.clear();
    }
    this.format = false;
    Thread.sleep(10000);
    startAvatarNodes();
    waitAvatarNodesActive();

    waitDataNodesActive();

    waitExitSafeMode();
  }