hadoop-metrics2 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2NhYzUwMjA0MTY1NDgwMWFiMmI5MTMwMjgzNTAyZDc0OGVmMjUxNg==
4
+ MzBkMjZjZDYyNjNmYjk1OTBjYTI0YzA2ZGE5MDI2ZDdjMGY5M2ZjYg==
5
5
  data.tar.gz: !binary |-
6
- ODVjOTk4MzlkNTg3OWMyMjY0ZTI1MTIwYWMyMzYwNDFjMTA4OTc2Nw==
6
+ MDZlYmZhNzFkMTE2YjViMTUzYmViZDIwMGVmZmRmMWIwY2MxZWViYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDQ1YTNhODAxMTYyYTQ2MDIyZTQyYjMyZDE4NGU3OWYzZmZmZDFmMGZiODYx
10
- ODMzN2M3YmVhYzBhOTE3MDM1Y2FjZTgwZDFiYmI5NGNiYWI5Njg3ZWU2Mzhi
11
- MjFhMWE1YzUxZjBjNjIwNDJjY2E5MDA1MDhlNjdlNzI1NTg5OTY=
9
+ NzI5YTVlZDc1M2I4YTFjZjliMDZlYjY2M2EzZGVjMTczNzZmOGUyNDFjNmFm
10
+ NDJlMzQyNWVhMWQyMDM2NGRjY2E0OWY3ZTEyYThlZjNhNzJkY2IwYTgzZTY5
11
+ NDE1NmY0OTY2ZmUwMmEzMDk0MjQ4OGI0NzRlNzhkMjI4OWE4Y2I=
12
12
  data.tar.gz: !binary |-
13
- NzE0YmNhYzM5MTk3OTZkYzRhOTQ5NGQyODBhYWIyZGEyMzFiOWU4Njg0Mzg5
14
- MDFmZWEzMmVmZjFiYmZkNjhmZWI2YWYyZWZjZjU3NDU3N2NhOWU1NTkyMTgw
15
- YmEwYTc2NTMzZDUzMTc1YzI4YzFlZTQ2OWQ5N2QyMDljNjExOTY=
13
+ MTYzY2JkZmI5NTRkNDc0YmVmYjMzNzRiMGQwNTdhZDk1ODQ3ODQ2N2Y1MWMy
14
+ MWRjOTY2YWEwM2ZhOWI1NTA0MDY0YTFlNDJmMzA4ODkxMmRjN2E2MzUzOTY1
15
+ M2QzYWUwMWVmOWEyMzk4OWQ2MThjMzA5NTM2YmRjNzljODM3ZDU=
data/README.md CHANGED
@@ -18,7 +18,7 @@ gem install hadoop-metrics2
18
18
  require 'hadoop_metrics2/resource_manager'
19
19
 
20
20
  rm = HadoopMetrics2::ResourceManager.new('localhost', 8088, true)
21
- puts JSON.pretty_generate(nm.application)
21
+ puts JSON.pretty_generate(rm.application)
22
22
  ```
23
23
 
24
24
  ### NodeManager
@@ -27,7 +27,7 @@ puts JSON.pretty_generate(nm.application)
27
27
  require 'hadoop_metrics2/node_manager'
28
28
 
29
29
  nm = HadoopMetrics::NodeManager.new('localhost', 8042, false)
30
- puts JSON.pretty_generate(nm.shuffle_output)
30
+ puts JSON.pretty_generate(nm.application)
31
31
  ```
32
32
 
33
33
  ### NameNode
@@ -13,7 +13,7 @@ module HadoopMetrics2
13
13
  def application(opts = {})
14
14
  column = get_column(opts)
15
15
  column = HadoopMetrics2.to_snake_case(column) if @snake_case
16
- metrics(get_force(opts))
16
+ metrics(get_force(opts))['nodeInfo']
17
17
  end
18
18
 
19
19
  private
@@ -14,7 +14,7 @@ module HadoopMetrics2
14
14
  def application(opts = {})
15
15
  column = get_column(opts)
16
16
  column = HadoopMetrics2.to_snake_case(column) if @snake_case
17
- metrics(get_force(opts))
17
+ metrics(get_force(opts))['clusterMetrics']
18
18
  end
19
19
 
20
20
  private
@@ -1,3 +1,3 @@
1
1
  module HadoopMetrics2
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hadoop-metrics2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryu Kobayashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake