hbase-jruby 0.4.2-java → 0.4.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -0
- data/lib/hbase-jruby/table/admin.rb +5 -5
- data/lib/hbase-jruby/version.rb +1 -1
- data/test/test_table_admin.rb +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5616ee04c88b243406c3b20a0e5a6e54e2886a5
|
4
|
+
data.tar.gz: 31e980dd255421804a0d2cfe0eb39aaea281c3bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac21cfa273b984ce372c73bc47726facc302ffeca22a71792b0565f022e47945199925fbdef8652c6a1af553edfe5f9d52aa642bd8d439fdb48bd2fe0f1de63
|
7
|
+
data.tar.gz: 50380fdbfe5d541482697adfa465cf2a66fd586b5b938756a88c9725d1056bd2b9ab83faf8c73265621ed612d00a5d54a925377e24ae9b36fbd3178a86ca9886
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -406,8 +406,11 @@ private
|
|
406
406
|
htd.addCoprocessor class_name
|
407
407
|
else
|
408
408
|
path, priority, params = props.values_at :path, :priority, :params
|
409
|
-
|
410
|
-
|
409
|
+
raise ArgumentError, ":path required" unless path
|
410
|
+
params = params ? Hash[ params.map { |k, v| [k.to_s, v.to_s] } ] : {}
|
411
|
+
htd.addCoprocessor class_name,
|
412
|
+
org.apache.hadoop.fs.Path.new(path),
|
413
|
+
priority || org.apache.hadoop.hbase.Coprocessor::PRIORITY_USER, params
|
411
414
|
end
|
412
415
|
admin.modifyTable @name.to_java_bytes, htd
|
413
416
|
wait_async_admin(admin, &block) if bang
|
@@ -416,9 +419,6 @@ private
|
|
416
419
|
end
|
417
420
|
|
418
421
|
def _remove_coprocessor name, bang, &block
|
419
|
-
unless HTableDescriptor.respond_to?(:removeCoprocessor)
|
420
|
-
raise NotImplementedError, "org.apache.hadoop.hbase.HTableDescriptor.removeCoprocessor not implemented"
|
421
|
-
end
|
422
422
|
with_admin do |admin|
|
423
423
|
while_disabled(admin) do
|
424
424
|
htd = admin.get_table_descriptor(@name.to_java_bytes)
|
data/lib/hbase-jruby/version.rb
CHANGED
data/test/test_table_admin.rb
CHANGED
@@ -145,13 +145,15 @@ class TestTableAdmin < TestHBaseJRubyBase
|
|
145
145
|
def test_add_coprocessor!
|
146
146
|
coproc = 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
|
147
147
|
assert_false @table.has_coprocessor? coproc
|
148
|
-
|
148
|
+
assert_raise(ArgumentError) {
|
149
|
+
# :path is missing
|
150
|
+
@table.add_coprocessor! coproc, :priority => 100
|
151
|
+
}
|
152
|
+
@table.add_coprocessor! coproc
|
149
153
|
assert @table.has_coprocessor? coproc
|
150
154
|
|
151
|
-
|
152
|
-
|
153
|
-
@table.remove_coprocessor! 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
|
154
|
-
end
|
155
|
+
@table.remove_coprocessor! 'org.apache.hadoop.hbase.coprocessor.AggregateImplementation'
|
156
|
+
assert !@table.has_coprocessor?(coproc)
|
155
157
|
|
156
158
|
@table.drop!
|
157
159
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hbase-jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Junegunn Choi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|