sensu-plugins-hbase 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ba84d1cd7985ee391a33480e32d10c999aebfa
4
- data.tar.gz: 7f88a8a3d393abd06238c4b0a2209c8beaec5e5f
3
+ metadata.gz: 841adb096d21fc36a3bf4e1dbc7de017ac600f2f
4
+ data.tar.gz: d3b7f347f94f56fc771e9a83f05f1b4899ebedc8
5
5
  SHA512:
6
- metadata.gz: f60023626a6fc60996ef7d812e304b96bbcca514a030e778474bc63902f4b627e32c82c6275f4f169a28d25df7d5581fe11c749a027da40f176b95c471b76319
7
- data.tar.gz: f0e167411daef520b3a2cec22421dacf4c1a74adc252d8ab9cd5f0ef5a790a95223d744065979dd28af39c77342d952d013991ee94d6111df14a34155b6777ad
6
+ metadata.gz: eef748e164c0e403b4e5f9e86f6622707790606b7073ce0278229c275d104421197a34db4f38e8c445732d1905748e53541a7b4b5d69eeed5b8bd351622d67a0
7
+ data.tar.gz: 457b12ccbeeaba3e144e37807a1c186e0205373466faabd5c9b2e5f839211682255e06c2e3e26d80c4c1713cd93d800d8abb694d773a0d917b7dde55340c70cc
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- B�=-D߫rM�H�M�?��y��#-����ɿM=]����x�X%ې�L �5��G��>�V&g�Ku�d���>�hiQ3%�L4�]� �����r�'�T�e<y� Iئ�l�9�9�:�S%�܃�Z$��G3�E����C� ���a�zje�AK.�9b�is�G75��3����GeC����Y���Y��
1
+ Hq:Pd��?jn ]F�ҷ�vyj,��*<��Z��_ҁ���ϱ15eH�ggb���-5t��R�⟂����z^�h���ShB.͢
2
+ �P�h=�S�Cެwi�^����Žl����h�c��(��NxPw�fb����7�� @�
@@ -3,7 +3,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased][unreleased]
6
+ ## Unreleased
7
+
8
+ ## [0.0.3] - 2015-09-14
9
+ ### Changed
10
+ - Catches RetriesExhaustedException to print clearer output when
11
+ hbase-master is down.
7
12
 
8
13
  ## [0.0.2] - 2015-07-14
9
14
  ### Changed
@@ -13,3 +18,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
13
18
 
14
19
  ### Added
15
20
  - initial release
21
+
22
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-hbase/compare/0.0.3...HEAD
23
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-hbase/compare/0.0.2...0.0.3
24
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-hbase/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## Installation
19
19
 
20
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
20
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
21
21
 
22
22
  ## Notes
23
23
 
@@ -34,6 +34,7 @@ include_class('java.lang.Boolean') { |_package, name| "J#{name}" }
34
34
 
35
35
  import org.apache.hadoop.hbase.client.HBaseAdmin
36
36
  import org.apache.hadoop.hbase.client.HTable
37
+ import org.apache.hadoop.hbase.client.RetriesExhaustedException
37
38
  import org.apache.hadoop.hbase.HBaseConfiguration
38
39
  import org.apache.hadoop.hbase.util.Bytes
39
40
  import org.apache.log4j.Logger
@@ -73,7 +74,11 @@ def check_hbase_status
73
74
  conf = HBaseConfiguration.new
74
75
  admin = HBaseAdmin.new(conf)
75
76
 
76
- status = admin.getClusterStatus
77
+ begin
78
+ status = admin.getClusterStatus
79
+ rescue org.apache.hadoop.hbase.client.RetriesExhaustedException
80
+ critical 'Hbase-master not running. Retries exhausted contacting master'
81
+ end
77
82
  dead_servers = status.getDeadServerNames
78
83
 
79
84
  count = dead_servers.length
@@ -2,7 +2,7 @@ module SensuPluginsHbase
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-hbase
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
  - Sensu-Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
33
+ date: 2015-09-14 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -108,14 +108,14 @@ dependencies:
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: '0.30'
111
+ version: 0.32.1
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - '='
117
117
  - !ruby/object:Gem::Version
118
- version: '0.30'
118
+ version: 0.32.1
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: rspec
121
121
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.4.6
216
+ rubygems_version: 2.4.8
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Sensu plugins for hbase
metadata.gz.sig CHANGED
Binary file