HBASE-7019 Can't pass SplitAlgo in hbase shell
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1401091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2cdb599c36
commit
2c4b5f74d7
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
include Java
|
include Java
|
||||||
java_import org.apache.hadoop.hbase.util.Pair
|
java_import org.apache.hadoop.hbase.util.Pair
|
||||||
|
java_import org.apache.hadoop.hbase.util.RegionSplitter
|
||||||
|
|
||||||
# Wrapper for org.apache.hadoop.hbase.client.HBaseAdmin
|
# Wrapper for org.apache.hadoop.hbase.client.HBaseAdmin
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,11 @@ module Hbase
|
||||||
assert_equal(['a:', 'b:'], table(@create_test_name).get_all_columns.sort)
|
assert_equal(['a:', 'b:'], table(@create_test_name).get_all_columns.sort)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
define_test "create should work with SPLITALGO" do
|
||||||
|
drop_test_table(@create_test_name)
|
||||||
|
admin.create(@create_test_name, 'a', 'b', {NUMREGIONS => 10, SPLITALGO => 'HexStringSplit'})
|
||||||
|
assert_equal(['a:', 'b:'], table(@create_test_name).get_all_columns.sort)
|
||||||
|
end
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
define_test "describe should fail for non-existent tables" do
|
define_test "describe should fail for non-existent tables" do
|
||||||
|
|
Loading…
Reference in New Issue