From 1ae4262595aeafa159b463e55dc0ccf74acff7c7 Mon Sep 17 00:00:00 2001 From: Ashish Singhi Date: Thu, 27 Nov 2014 18:53:40 +0530 Subject: [PATCH] HBASE-12594 Remove the usage of deprecated HbaseAdmin#getTableNames from shell list command --- hbase-shell/src/main/ruby/hbase/admin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb index 2396062..25cf9d0 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -47,7 +47,7 @@ module Hbase #---------------------------------------------------------------------------------------------- # Returns a list of tables in hbase def list(regex = ".*") - @admin.getTableNames(regex).to_a + @admin.listTables(regex).map { |t| t.getTableName().getNameAsString } end #---------------------------------------------------------------------------------------------- -- 1.9.2.msysgit.0