hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1399429 - /hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb
Date Wed, 17 Oct 2012 20:58:36 GMT
Author: tedyu
Date: Wed Oct 17 20:58:35 2012
New Revision: 1399429

URL: http://svn.apache.org/viewvc?rev=1399429&view=rev
Log:
HBASE-6948 shell create table script cannot handle split key which is expressed in raw bytes
(Tianying)


Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/admin.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=1399429&r1=1399428&r2=1399429&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/admin.rb Wed Oct 17 20:58:35 2012
@@ -218,7 +218,7 @@ module Hbase
             splits = Java::byte[][arg[SPLITS].size].new
             idx = 0
             arg[SPLITS].each do |split|
-              splits[idx] = split.to_java_bytes
+              splits[idx] = org.apache.hadoop.hbase.util.Bytes.toBytesBinary(split)
               idx = idx + 1
             end
           elsif (arg.has_key?(NUMREGIONS) or arg.has_key?(SPLITALGO))



Mime
View raw message