Skip to content

ryukobayashi/hadoop-metrics2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hadoop-metrics2

hadoop-metrics2 is a wrapper for Hadoop Metrics2 API.

Installation

gem

gem install hadoop-metrics2

Usage

ResourceManager

require 'hadoop_metrics2/resource_manager'

rm = HadoopMetrics2::ResourceManager.new('localhost', 8088, true)
puts JSON.pretty_generate(rm.application)

NodeManager

require 'hadoop_metrics2/node_manager'

nm = HadoopMetrics::NodeManager.new('localhost', 8042, false)
puts JSON.pretty_generate(nm.application)

NameNode

require 'hadoop_metrics2/name_node'

nn = HadoopMetrics2::NameNode.new('localhost', 50070, true)
puts JSON.pretty_generate(nn.dfs)

DataNode

require 'hadoop_metrics2/data_node'

dn = HadoopMetrics2::DataNode.new('localhost', 50075, false)
puts JSON.pretty_generate(dn.info)

Copyright

AuthorRyu Kobayashi
Original AuthorMasahiro Nakagawa
Original Repositoryhttps://github.com/repeatedly/hadoop-metrics
CopyrightCopyright (c) 2014- Ryu Kobayashi
LicenseApache2 License

About

hadoop-metrics is a wrapper for Hadoop Metrics2 API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages