Examples of shutdown()


Examples of org.apache.hadoop.hbase.io.hfile.LruBlockCache.shutdown()

        e.printStackTrace();
      }
    }
    // Send cache a shutdown.
    LruBlockCache c = (LruBlockCache)StoreFile.getBlockCache(this.conf);
    if (c != null) c.shutdown();

    // Send interrupts to wake up threads if sleeping so they notice shutdown.
    // TODO: Should we check they are alive?  If OOME could have exited already
    cacheFlusher.interruptIfNecessary();
    hlogFlusher.interrupt();
View Full Code Here

Examples of org.apache.hadoop.hbase.master.MasterCoprocessorHost.shutdown()

    CoprocessorEnvironment env = cpHost.findCoprocessorEnvironment(implClazz.getName());
    assertEquals(Coprocessor.VERSION, env.getVersion());
    assertEquals(VersionInfo.getVersion(), env.getHBaseVersion());
    hTableInterface = env.getTable(TEST_TABLE);
    checkHTableInterfaceMethods();
    cpHost.shutdown(env);
  }

  private void checkHTableInterfaceMethods() throws Exception {
    checkConf();
    checkNameAndDescriptor();
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.metrics.RESTMetrics.shutdown()

    testData(tmax, timeout, test.getSucessfulPutCount(), incrementSucessfulPut);
    testData(tmax, timeout, test.getFailedGetCount(), incrementFailedGetRequests);
    testData(tmax, timeout, test.getFailedDeleteCount(), incrementFailedDeleteRequests);
    testData(tmax, timeout, test.getFailedPutCount(), incrementFailedPutRequests);

    test.shutdown();
  }

  // test minimum and maximum speed
  private void testData(double tmax, long tmin, float value, double requests) {
    assertTrue((requests / tmax) * 1000 <= value);
View Full Code Here

Examples of org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.shutdown()

        runNIsMoreThanOne(cmd);
      }
    } finally {
      if(this.miniCluster) {
        if (hbaseMiniCluster != null) hbaseMiniCluster.shutdown();
        if (zooKeeperCluster != null) zooKeeperCluster.shutdown();
        HBaseTestCase.shutdownDfs(dfsCluster);
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.AvatarZooKeeperClient.shutdown()

        if (tries == maxTries - 1 ) {
          throw new IOException(e);
        }
      } finally {
        try {
          zk.shutdown();
        } catch (InterruptedException ie) {
          if (tries == maxTries - 1) {
            throw new IOException(ie);
          }
        }
View Full Code Here

Examples of org.apache.hadoop.hdfs.MiniAvatarCluster.shutDown()

      List<AvatarDataNode> datanodes = cluster.getDataNodes();
      Assert.assertEquals(datanodes.size(), 1);
      checkMXBean(datanodes.get(0));
    } finally {
      if (cluster != null) {
        cluster.shutDown();
      }
      MiniAvatarCluster.shutDownZooKeeper();
    }
  }
 
View Full Code Here

Examples of org.apache.hadoop.hdfs.MiniDFSCluster.shutdown()

    } finally {
      if (Datasets.exists(hdfsUri)) {
        Datasets.delete(hdfsUri);
      }
      cluster.shutdown();
    }
  }

  @Test
  public void testBatchSize() throws EventDeliveryException {
View Full Code Here

Examples of org.apache.hadoop.hdfs.MiniDFSClusterWithNodeGroup.shutdown()

      launchJobAndTestCounters(testName, mr, fileSys, inDir, outputPath, 3, 0,
          0, 3, 0, jobConf);
      mr.shutdown();
    } finally {
      if (dfs != null) {
        dfs.shutdown();
      }
      if (mr != null) {
        mr.shutdown();
      }
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.notifier.server.ServerCore.shutdown()

      assertEquals(numRequests, myWatcher.numDeleted);
     
     
    } finally {
      if (notifier != null) {
        notifier.shutdown();
        notifier.join();
      }
    }
  }
 
View Full Code Here

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

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

  /**
 
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.