Package org.apache.hadoop.chukwa.extraction.database

Examples of org.apache.hadoop.chukwa.extraction.database.MetricDataLoader


    String srcDir = System.getenv("CHUKWA_DATA_DIR");
    try {
      ChukwaConfiguration conf = new ChukwaConfiguration();
      FileSystem fs = FileSystem.get(conf);
      FileStatus[] sources = fs.listStatus(new Path(srcDir));
      MetricDataLoader mdl = new MetricDataLoader(cluster);
      for (FileStatus sequenceFile : sources) {
        mdl.process(sequenceFile.getPath());
      }
    } catch (Throwable ex) {
      fail("SQL Exception: "+ExceptionUtil.getStackTrace(ex));
    }
    DatabaseWriter db = new DatabaseWriter(cluster);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.extraction.database.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.