Examples of shutdown()


Examples of org.apache.hadoop.hdfs.qjournal.MiniQJMHACluster.shutdown()

      // Should have no problem in restart and replaying edits that include
      // the FINALIZE op.
      dfsCluster.restartNameNode(0);
    } finally {
      if (cluster != null) {
        cluster.shutdown();
      }
    }
  }

  @Test (timeout = 300000)
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.DataNode.shutdown()

   */
  public void shutdownDataNodes() {
    for (int i = dataNodes.size()-1; i >= 0; i--) {
      System.out.println("Shutting down DataNode " + i);
      DataNode dn = dataNodes.remove(i).datanode;
      dn.shutdown();
      numDataNodes--;
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.FSDataset.AsyncBlockReport.shutdown()

        }
        assertSame(mockResult, abr.getAndReset());
        assertFalse(abr.isReady());
      }     
    } finally {
      abr.shutdown();
    }
  }

  private void fakeBeingCreated(Block b) {
    ongoingCreates.put(b,
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.shutdown()

      // do checkpoint in SNN again
      snn.doCheckpoint();
    } finally {
      IOUtils.cleanup(null, dfs);
      if (snn != null) {
        snn.shutdown();
      }
      if (cluster != null) {
        cluster.shutdown();
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.SnapshotNode.shutdown()

    System.out.println("WOOT");
    ssNode.createSnapshot("leaseNotUpdated_V2", false);
    ssNode.createSnapshot("leaseUpdated_V2", true);

    // Shutdown ssNode
    ssNode.shutdown();

    INodeFile file;
    FSNamesystem fsNamesys;

    // Verify state of leaseNotUpdated_V1
View Full Code Here

Examples of org.apache.hadoop.hdfs.tools.FastCopy.shutdown()

      Map<DatanodeInfo, Integer> dnErrors = fastCopy.getDatanodeErrors();
      assertEquals(1, dnErrors.size());
      int errors = dnErrors.values().iterator().next();
      assertTrue(errors >= conf.getInt("dfs.fastcopy.max.datanode.errors", 3) + 1);
    } finally {
      fastCopy.shutdown();
    }
  }
}
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.RawStore.shutdown()

    Long threadId = this.getId();
    RawStore threadLocalRawStore = threadRawStoreMap.get(threadId);
    if (threadLocalRawStore != null) {
      LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " +
          this.getName()  " will be closed now.");
      threadLocalRawStore.shutdown();
      threadRawStoreMap.remove(threadId);
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hive.service.HiveClient.shutdown()

      return action.doInHive(hiveClient);
    } catch (Exception ex) {
      throw convertHiveAccessException(ex);
    } finally {
      try {
        hiveClient.shutdown();
      } catch (Exception ex) {
        // ignore for now
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.MiniMRCluster.shutdown()

      mr = new MiniMRCluster(2, "file:///", 3);
      Configuration conf = mr.createJobConf();
      runWordCount(conf);
      runMultiFileWordCount(conf);
    } finally {
      if (mr != null) { mr.shutdown(); }
    }
  }

  public static class TrackingTextInputFormat extends TextInputFormat {
View Full Code Here

Examples of org.apache.hadoop.metrics2.MetricsSystem.shutdown()

    // should work when metrics system is not started
    ms.register("ts1", "", ts2);
    MetricsSource s2 = ms.getSource("ts1");
    assertNotNull(s2);
    assertNotSame(s1, s2);
    ms.shutdown();
  }

  @Test(expected=MetricsException.class) public void testRegisterDupError() {
    MetricsSystem ms = new MetricsSystemImpl("test");
    TestSource ts = new TestSource("ts");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.