Package org.apache.hadoop.hdfs.MiniDFSCluster

Examples of org.apache.hadoop.hdfs.MiniDFSCluster.ShutDownUtil


   * Adds all datanodes to shutdown list
   */
  private void processDatanodesForShutdown(Collection<Thread> threads) {
    for (int i = 0; i < dataNodes.size(); i++) {
      LOG.info("Shutting down data node " + i);
      Thread st = new Thread(new ShutDownUtil(dataNodes.get(i)));
      st.start();
      threads.add(st);
    }
  }
View Full Code Here


    for (NameNodeInfo nni : this.nameNodes) {
      for (AvatarInfo avatar: nni.avatars) {
        if (avatar.state == AvatarState.ACTIVE ||
            avatar.state == AvatarState.STANDBY) {
          LOG.info("Shutting down Avatar " + avatar.state);
          Thread st = new Thread(new ShutDownUtil(avatar));
          st.start();
          threads.add(st);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.MiniDFSCluster.ShutDownUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.