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:
gchanan 2012-10-22 21:46:50 +00:00
parent 2cdb599c36
commit 2c4b5f74d7
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@
include Java
java_import org.apache.hadoop.hbase.util.Pair
java_import org.apache.hadoop.hbase.util.RegionSplitter
# Wrapper for org.apache.hadoop.hbase.client.HBaseAdmin

View File

@ -161,6 +161,11 @@ module Hbase
assert_equal(['a:', 'b:'], table(@create_test_name).get_all_columns.sort)
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