From aa2adfa70e50d22ade56b01a3386d505dc225d67 Mon Sep 17 00:00:00 2001 From: mbertozzi Date: Mon, 26 Aug 2013 19:57:25 +0000 Subject: [PATCH] HBASE-9337 shell 'user_permission' throws no method 'toStringBinary' for (o.a.h.h.TableName) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1517665 13f79535-47bb-0310-9956-ffa450edef68 --- hbase-server/src/main/ruby/hbase/security.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/ruby/hbase/security.rb b/hbase-server/src/main/ruby/hbase/security.rb index 6b30ff01417..67f586dbee1 100644 --- a/hbase-server/src/main/ruby/hbase/security.rb +++ b/hbase-server/src/main/ruby/hbase/security.rb @@ -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