Package org.apache.hadoop.chukwa.dataloader

Examples of org.apache.hadoop.chukwa.dataloader.MetricDataLoader


    try {
      ChukwaConfiguration conf = new ChukwaConfiguration();
      FileSystem fs = FileSystem.get(conf);
      FileStatus[] sources = fs.listStatus(new Path(srcDir));
      for (FileStatus sequenceFile : sources) {
        MetricDataLoader mdl = new MetricDataLoader(conf, fs, sequenceFile.getPath().toUri().toString());
        mdl.call();
      }
      if(sources.length==0) {
        skip=true;
      }
    } catch (Throwable ex) {
View Full Code Here


      Path outputPath = new Path(DEMUX_OUTPUT_PATH.toString()+File.separator+"/*/*/*.evt");
      FileStatus[] demuxOutput = fs.globStatus(outputPath);
      log.info("Number of chukwa records files written:"+demuxOutput.length);
      assertTrue(demuxOutput.length!=0);
      for(FileStatus fname : demuxOutput) {
        MetricDataLoader mdl = new MetricDataLoader(conf, fs, fname.getPath().toUri().toString());
        mdl.call();
      }
    } catch (IOException e) {
      e.printStackTrace();
      fail("Metric Data Loader Error.");
    }   
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.dataloader.MetricDataLoader

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.