Package org.apache.hadoop.hdfs.test.system

Examples of org.apache.hadoop.hdfs.test.system.NNClient


  @Test
  public void testConnect() throws IOException {
    LOG.info("Staring TestHL040: connecting to the HDFSCluster ");
    LOG.info("================ Getting namenode info ================");
    NNClient dfsMaster = cluster.getNNClient();
    LOG.info("Process info of namenode " + dfsMaster.getHostName() + " is: " +
        dfsMaster.getProcessInfo());
    LOG.info("================ Getting datanode info ================");
    Collection<DNClient> clients = cluster.getDNClients();
    for (DNClient dnC : clients) {
      LOG.info("Process info of datanode " + dnC.getHostName() + " is: " +
          dnC.getProcessInfo());
View Full Code Here


    }

    // Trivial @Test
    public void testNamenodePing() throws IOException {
        LOG.info("testing filesystem ping");
        NNClient namenode = dfsCluster.getNNClient();
        namenode.ping();
        LOG.info("done.");
    }
View Full Code Here

    }

    // Trivial @Test
    public void testNamenodeConnectDisconnect() throws IOException {
        LOG.info("connecting to namenode");
        NNClient namenode = dfsCluster.getNNClient();
        namenode.connect();
        LOG.info("done.");
        LOG.info("disconnecting from namenode");
        namenode.disconnect();
    }
View Full Code Here

        // write some blocks with replication factor of 1
        balancerTempDir = makeTempDir();
        generateFileSystemLoad(20, replication);

        // get block locations from NN
        NNClient namenode = dfsCluster.getNNClient();
        // TODO extend namenode to get block locations
        //namenode.get

        // shutdown 1 node
        stopDatanode(testnode1);
View Full Code Here

  @Test
  public void testConnect() throws IOException {
    LOG.info("Staring TestHL040: connecting to the HDFSCluster ");
    LOG.info("================ Getting namenode info ================");
    NNClient dfsMaster = cluster.getNNClient();
    LOG.info("Process info of namenode " + dfsMaster.getHostName() + " is: " +
        dfsMaster.getProcessInfo());
    LOG.info("================ Getting datanode info ================");
    Collection<DNClient> clients = cluster.getDNClients();
    for (DNClient dnC : clients) {
      LOG.info("Process info of datanode " + dnC.getHostName() + " is: " +
          dnC.getProcessInfo());
View Full Code Here

  @Test
  public void testConnect() throws IOException {
    LOG.info("Staring TestHL040: connecting to the HDFSCluster ");
    LOG.info("================ Getting namenode info ================");
    NNClient dfsMaster = cluster.getNNClient();
    LOG.info("Process info of namenode " + dfsMaster.getHostName() + " is: " +
        dfsMaster.getProcessInfo());
    LOG.info("================ Getting datanode info ================");
    Collection<DNClient> clients = cluster.getDNClients();
    for (DNClient dnC : clients) {
      LOG.info("Process info of datanode " + dnC.getHostName() + " is: " +
          dnC.getProcessInfo());
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.test.system.NNClient

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.