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

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


import junit.framework.TestCase;

public class HDFSUsagePluginTest extends TestCase {

  public void testGetMetrics() throws Throwable {
    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());
View Full Code Here

TOP

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

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.