HBASE-15147 Shell should use Admin.listTableNames() instead of 
Admin.listTables()


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5a3e2abc
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5a3e2abc
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5a3e2abc

Branch: refs/heads/branch-1.1
Commit: 5a3e2abc048a4d9bc60566f9f12f31fdda22702c
Parents: 72bc50f
Author: Enis Soztutar <[email protected]>
Authored: Thu Jan 21 11:09:02 2016 -0800
Committer: Enis Soztutar <[email protected]>
Committed: Thu Jan 21 11:11:51 2016 -0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/admin.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5a3e2abc/hbase-shell/src/main/ruby/hbase/admin.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb 
b/hbase-shell/src/main/ruby/hbase/admin.rb
index 6e2d0fe..32885d9 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -45,7 +45,7 @@ module Hbase
     
#----------------------------------------------------------------------------------------------
     # Returns a list of tables in hbase
     def list(regex = ".*")
-      @admin.listTables(regex).map { |t| t.getNameAsString }
+      @admin.listTableNames(regex).map { |t| t.getNameAsString }
     end
 
     
#----------------------------------------------------------------------------------------------

Reply via email to