From a17ed0356f12c6f7a682557d92cc401b7a4297f1 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 4b0de5f7d24..2aacd7f76f9 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -386,7 +386,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