hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcha...@apache.org
Subject svn commit: r1401091 - in /hbase/trunk/hbase-server/src: main/ruby/hbase/admin.rb test/ruby/hbase/admin_test.rb
Date Mon, 22 Oct 2012 21:46:50 GMT
Author: gchanan
Date: Mon Oct 22 21:46:50 2012
New Revision: 1401091

URL: http://svn.apache.org/viewvc?rev=1401091&view=rev
Log:
HBASE-7019 Can't pass SplitAlgo in hbase shell

Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb
    hbase/trunk/hbase-server/src/test/ruby/hbase/admin_test.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb?rev=1401091&r1=1401090&r2=1401091&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb Mon Oct 22 21:46:50 2012
@@ -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
 

Modified: hbase/trunk/hbase-server/src/test/ruby/hbase/admin_test.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/ruby/hbase/admin_test.rb?rev=1401091&r1=1401090&r2=1401091&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/ruby/hbase/admin_test.rb (original)
+++ hbase/trunk/hbase-server/src/test/ruby/hbase/admin_test.rb Mon Oct 22 21:46:50 2012
@@ -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



Mime
View raw message