Examples of ChunkCatcherConnector


Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

public class TestRawAdaptor extends TestCase {
  ChunkCatcherConnector chunks;

  public TestRawAdaptor() {
    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

public class TestLogRotate extends TestCase {
  ChunkCatcherConnector chunks;

  public TestLogRotate() {
    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

  ChunkCatcherConnector chunks;
  Configuration conf = new Configuration();
  File baseDir, testFile;
 
  public TestFileTailingAdaptors() throws IOException {
    chunks = new ChunkCatcherConnector();
    chunks.start();
    baseDir = new File(System.getProperty("test.build.data", "/tmp"));
    conf.set("chukwaAgent.checkpoint.dir", baseDir.getCanonicalPath());
    conf.setBoolean("chukwaAgent.checkpoint.enabled", false);
    conf.setInt("chukwaAgent.adaptor.context.switch.time", 100);
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

        tempDir.mkdirs();
      }
      String logFile = tempDir.getPath() + "/Chukwa-bigRecord.txt";
      f = makeTestFile(logFile);

      chunks = new ChunkCatcherConnector();
      chunks.start();

      // Remove any adaptor left over from previous run
      ChukwaConfiguration cc = new ChukwaConfiguration();
      cc.set("chukwaAgent.control.port", "0");
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

public class TestStartAtOffset extends TestCase {

  ChunkCatcherConnector chunks;

  public TestStartAtOffset() {
    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

  ChunkCatcherConnector chunks;
  File baseDir;
  public TestCharFileTailingAdaptorUTF8() {

    baseDir = new File(System.getProperty("test.build.data", "/tmp"));
    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

public class TestRCheckAdaptor extends TestCase implements ChunkReceiver {
 
  ChunkCatcherConnector chunks;

  public TestRCheckAdaptor() {
    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

  protected void setUp() throws ChukwaAgent.AlreadyRunningException {
    config = new Configuration();
    agent = new ChukwaAgent(config);
    c = new ChukwaAgentController();
    connector = new ChunkCatcherConnector();
    connector.start();
  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

    File baseDir = new File(System.getProperty("test.build.data", "/tmp"));
    conf.set("chukwaAgent.checkpoint.dir", baseDir.getCanonicalPath());
    conf.setBoolean("chukwaAgent.checkpoint.enabled", false);
    conf.set("chukwaAgent.control.port", "0");
    ChukwaAgent agent = new ChukwaAgent(conf);
    ChunkCatcherConnector chunks = new ChunkCatcherConnector();
    chunks.start();

    System.setProperty("xtrace.reporter", "edu.berkeley.xtrace.reporting.TcpReporter");
    System.setProperty("xtrace.tcpdest", "localhost:7831");

    assertEquals(0, agent.adaptorCount());
    agent.processAddCommand("add edu.berkeley.chukwa_xtrace.XtrAdaptor XTrace TcpReportSource 0");
    assertEquals(1, agent.adaptorCount());
   
    XTraceContext.startTrace("test", "testtrace", "atag");
    XTraceContext.logEvent("test", "label");
    Chunk c = chunks.waitForAChunk();
    String report = new String(c.getData());
    assertTrue(report.contains("Agent: test"));
    assertTrue(report.contains("Tag: atag"));
    System.out.println(report);
    System.out.println("-- next chunk --- ");

    c = chunks.waitForAChunk();
    report = new String(c.getData());
    assertTrue(report.contains("Agent: test"));
    assertTrue(report.contains("Label: label"));
    System.out.println(report);
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.connector.ChunkCatcherConnector

    conf.setBoolean("chukwaAgent.checkpoint.enabled", false);
    conf.setInt("chukwaAgent.adaptor.fileadaptor.timeoutperiod", 100);
    conf.setInt("chukwaAgent.adaptor.context.switch.time", 100);
    testFile = makeTestFile("test", 10, baseDir);

    chunks = new ChunkCatcherConnector();
    chunks.start();
  }
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.