@After
  public void shutDownCluster() throws Exception {

    // Dump all RamDisk JMX metrics before shutdown the cluster
    printRamDiskJMXMetrics();

    if (fs != null) {
      fs.close();
      fs = null;
      client = null;
    }

    if (cluster != null) {
      cluster.shutdownDataNodes();
      cluster.shutdown();
      cluster = null;
    }

    if (jmx != null) {
      jmx = null;
    }

    IOUtils.closeQuietly(sockDir);
    sockDir = null;
  }
示例#2
0
 @After
 public void shutDownCluster() throws IOException {
   if (dfs != null) {
     dfs.close();
   }
   if (userdfs != null) {
     userdfs.close();
   }
   if (cluster != null) {
     cluster.shutdownDataNodes();
     cluster.shutdown();
   }
   InjectionHandler.clear();
 }