Package org.apache.hadoop.chukwa.inputtools.hdfsusage

Examples of org.apache.hadoop.chukwa.inputtools.hdfsusage.HDFSUsageMetrics


    HDFSUsagePlugin plugin = new HDFSUsagePlugin();
    plugin.init(new String[0]);
    ChukwaMetricsList<HDFSUsageMetrics> list = plugin.getMetrics();
    System.out.println(list.getTimestamp());
    for (ChukwaMetrics metrics : list.getMetricsList()) {
      HDFSUsageMetrics usage = (HDFSUsageMetrics) metrics;
      System.out.print(usage.getName());
      System.out.println("size: " + usage.getSize());
    }
    System.out.println();

    String xml = list.toXml();
    System.out.println(xml);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.inputtools.hdfsusage.HDFSUsageMetrics

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.