Package org.apache.hadoop.chukwa.conf

Examples of org.apache.hadoop.chukwa.conf.ChukwaConfiguration


  private static FileSystem fs = null;
  private static Configuration conf = null;

  private DsDirectory() {
    dataConfig = new DataConfig();
    conf = new ChukwaConfiguration();
    try {
      fs = FileSystem.get(conf);
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here


      Server server = new Server(9990);
      Context root = new Context(server, "/", Context.SESSIONS);

      ServletCollector.setWriter(new ConsoleWriter(true));
      root.addServlet(new ServletHolder(new ServletCollector(
          new ChukwaConfiguration(true))), "/*");
      server.start();
      server.setStopAtShutdown(false);

      Thread.sleep(1000);
      ChukwaAgent agent = new ChukwaAgent();
      HttpConnector connector = new HttpConnector(agent,
          "http://localhost:9990/chukwa");
      connector.start();

      ChukwaConfiguration cc = new ChukwaConfiguration();
      int portno = cc.getInt("chukwaAgent.control.port", 9093);
      ChukwaAgentController cli = new ChukwaAgentController("localhost", portno);

      File workdir = new File("/tmp/stresstest/");
      workdir.mkdir();
      for (int i = 0; i < FILES_TO_USE; ++i) {
View Full Code Here

    }    
  };

 
  public PostProcessorManager() throws Exception {
    conf = new ChukwaConfiguration();
    init();
  }
View Full Code Here

        System.out.println("note: if no portno defined, "
            + "defaults to value in chukwa-site.xml");
        System.exit(0);
      }

      ChukwaConfiguration conf = new ChukwaConfiguration();
      int portNum = conf.getInt("chukwaCollector.http.port", 9999);
      THREADS = conf.getInt("chukwaCollector.http.threads", 80);

      if (args.length != 0)
        portNum = Integer.parseInt(args[0]);

      // pick a writer.
      ChukwaWriter w = null;
      if (args.length > 1) {
        if (args[1].equals("pretend"))
          w = new ConsoleWriter(true);
        else if (args[1].equals("pretend-quietly"))
          w = new ConsoleWriter(false);
        else if (args[1].equals("-classname")) {
          if (args.length < 3)
            System.err.println("need to specify a writer class");
          else {
            conf.set("chukwaCollector.writerClass", args[2]);
          }
        } else
          System.out.println("WARNING: unknown command line arg " + args[1]);
      }
      if (w != null) {
View Full Code Here

  protected ChukwaConfiguration conf = null;
  protected FileSystem fs = null;
  protected boolean isRunning = true;
 
  public ChukwaArchiveManager() throws Exception {
    conf = new ChukwaConfiguration();
    init();
  }
View Full Code Here

    conf = new ChukwaConfiguration();
    init();
  }

  public ChukwaArchiveManager(ChukwaConfiguration conf) throws Exception {
    conf = new ChukwaConfiguration();
    init();
  }
View Full Code Here

   */
  public static void main(String[] args) throws Exception {
   
    DaemonWatcher.createInstance("DailyChukwaRecordRolling");
   
    conf = new ChukwaConfiguration();
    String fsName = conf.get("writer.hdfs.filesystem");
    fs = FileSystem.get(new URI(fsName), conf);

    // TODO read from config
    String rollingFolder = "/chukwa/rolling/";
View Full Code Here

    manager.start();

  }

  public DemuxManager() throws Exception {
    this.conf = new ChukwaConfiguration();
    init();
  }
View Full Code Here

  /**
   * @param args
   * @throws Exception
   */
  public static void main(String[] args) throws Exception {
    conf = new ChukwaConfiguration();
    String fsName = conf.get("writer.hdfs.filesystem");
    fs = FileSystem.get(new URI(fsName), conf);

    Path srcDir = new Path(args[0]);
    String destDir = args[1];
View Full Code Here

   * @throws Exception
   */
  public static void main(String[] args) throws Exception {
    DaemonWatcher.createInstance("HourlyChukwaRecordRolling");
   
    conf = new ChukwaConfiguration();
    String fsName = conf.get("writer.hdfs.filesystem");
    fs = FileSystem.get(new URI(fsName), conf);

    // TODO read from config
    String rollingFolder = "/chukwa/rolling/";
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.conf.ChukwaConfiguration

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.