From e05f527991356405ad7186dd48d9d06201695388 Mon Sep 17 00:00:00 2001 From: chenheng Date: Mon, 27 Jun 2016 15:06:51 +0800 Subject: [PATCH] HBASE-16111 Truncate preserve shell command is broken --- 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 73a58636d90..73b78d81715 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -490,7 +490,7 @@ module Hbase #---------------------------------------------------------------------------------------------- # Truncates table while maintaing region boundaries (deletes all records by recreating the table) def truncate_preserve(table_name_str) - puts "Truncating '#{table}' table (it may take a while):" + puts "Truncating '#{table_name_str}' table (it may take a while):" table_name = TableName.valueOf(table_name_str) locator = @connection.getRegionLocator(table_name) begin