hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1517665 - /hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb
Date Mon, 26 Aug 2013 19:57:26 GMT
Author: mbertozzi
Date: Mon Aug 26 19:57:25 2013
New Revision: 1517665

URL: http://svn.apache.org/r1517665
Log:
HBASE-9337 shell 'user_permission' throws no method 'toStringBinary' for (o.a.h.h.TableName)

Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb?rev=1517665&r1=1517664&r2=1517665&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb Mon Aug 26 19:57:25 2013
@@ -187,7 +187,7 @@ module Hbase
       count  = 0
       perms.each do |value|
         user_name = String.from_java_bytes(value.getUser)
-        table = (value.getTable != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getTable)
: ''
+        table = (value.getTable != nil) ? value.getTable.toString() : ''
         family = (value.getFamily != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getFamily)
: ''
         qualifier = (value.getQualifier != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getQualifier)
: ''
 
@@ -201,7 +201,7 @@ module Hbase
         end
         count += 1
       end
-      
+
       return ((block_given?) ? count : res)
     end
 



Mime
View raw message