From f1c6f164288f1a6b81aa17428a7ce795ff088d31 Mon Sep 17 00:00:00 2001 From: Chenxi Tong Date: Wed, 9 Aug 2017 12:00:53 +0800 Subject: [PATCH] HBASE-18125 shell disregards spaces at the end of a split key in a split file Signed-off-by: fchenxi Signed-off-by: Michael Stack --- 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 502abe2aa43..b225e1a6116 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -357,7 +357,7 @@ module Hbase end arg[SPLITS] = [] File.foreach(splits_file) do |line| - arg[SPLITS].push(line.strip()) + arg[SPLITS].push(line.chomp) end htd.setValue(SPLITS_FILE, arg[SPLITS_FILE]) end