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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/CHANGELOG.md +10 -1
- data/README.md +1 -1
- data/bin/check-hbase-status.rb +6 -1
- data/lib/sensu-plugins-hbase/version.rb +1 -1
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 841adb096d21fc36a3bf4e1dbc7de017ac600f2f
|
|
4
|
+
data.tar.gz: d3b7f347f94f56fc771e9a83f05f1b4899ebedc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eef748e164c0e403b4e5f9e86f6622707790606b7073ce0278229c275d104421197a34db4f38e8c445732d1905748e53541a7b4b5d69eeed5b8bd351622d67a0
|
|
7
|
+
data.tar.gz: 457b12ccbeeaba3e144e37807a1c186e0205373466faabd5c9b2e5f839211682255e06c2e3e26d80c4c1713cd93d800d8abb694d773a0d917b7dde55340c70cc
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
Hq:Pd��?j�n ]F�ҷ�vyj,��*<��Z��_ҁ���ϱ15eH�ggb���-5t��R�⟂����z^�h���Sh�B.͢
|
|
2
|
+
�P�h=�S�Cެwi�^����l����h�c��(��NxPw�fb����7�� @�
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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
data/bin/check-hbase-status.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
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.
|
|
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-
|
|
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:
|
|
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:
|
|
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.
|
|
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
|