Examples of HdfsCollector


Examples of org.apache.blur.agent.collectors.hdfs.HdfsCollector

  @Test
  public void shouldCreateHdfs() throws HdfsThreadException {
    List<String> activeCollectors = new ArrayList<String>();

    Thread testHdfsCollector = new Thread(new HdfsCollector("TestHDFS", hdfsUri.toString(), "hdfs://localhost:55314", null,
        activeCollectors, database), "Hdfs Test Thread");
    testHdfsCollector.start();
    waitForThreadToSleep(testHdfsCollector, 250);

    int hdfsCount = jdbc.queryForInt("select count(id) from hdfs");
View Full Code Here

Examples of org.apache.blur.agent.collectors.hdfs.HdfsCollector

  @Test
  public void shouldCollectStatsWhenActive() throws HdfsThreadException {
    List<String> activeCollectors = new ArrayList<String>();
    activeCollectors.add("hdfs");

    Thread testHdfsCollector = new Thread(new HdfsCollector("TestHDFS", hdfsUri.toString(), "hdfs://localhost:55314", null,
        activeCollectors, database), "Hdfs Test Thread");
    testHdfsCollector.start();
    waitForThreadToSleep(testHdfsCollector, 250);

    int statsCount = jdbc.queryForInt("select count(id) from hdfs_stats");
View Full Code Here

Examples of org.apache.blur.agent.collectors.hdfs.HdfsCollector

  @Test
  public void shouldNotCollectStatsWithoutActive() throws HdfsThreadException {
    List<String> activeCollectors = new ArrayList<String>();

    Thread testHdfsCollector = new Thread(new HdfsCollector("TestHDFS", hdfsUri.toString(), "hdfs://localhost:55314", null,
        activeCollectors, database), "Hdfs Test Thread");
    testHdfsCollector.start();
    waitForThreadToSleep(testHdfsCollector, 250);

    int statsCount = jdbc.queryForInt("select count(id) from hdfs_stats");
View Full Code Here

Examples of org.apache.blur.agent.collectors.hdfs.HdfsCollector

      final String name = instance.get("name");
      final String thriftUri = instance.get("url.thrift");
      final String defaultUri = instance.get("url.default");
      final String user = props.getProperty("hdfs." + name + ".login.user");
      try {
        new Thread(new HdfsCollector(name, defaultUri, thriftUri, user, activeCollectors, new HdfsDatabaseConnection(jdbc)),
            "Hdfs Collector - " + name).start();
      } catch (HdfsThreadException e) {
        log.error("The collector for hdfs [" + name + "] will not execute.");
        continue;
      }
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.