From 46cfaff1710b0c740c00dfaecd997f89cdee4761 Mon Sep 17 00:00:00 2001 From: ZhangIssac <58984599+ZhangIssac@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:08:41 +0800 Subject: [PATCH] HBASE-28145 When specifying the wrong BoolFilter type while creating a table in HBase shell, the log prompt will report an error. (#5460) Co-authored-by: xiaozhang Signed-off-by: Duo Zhang (cherry picked from commit 13d46e7f8cd488d9d352baef4eacb0d8681d0295) --- 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 42f25111c1a6..031a77b44334 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -1087,7 +1087,7 @@ def hcd(arg, htd) if org.apache.hadoop.hbase.regionserver.BloomType.constants.include?(bloomtype) family.setBloomFilterType(org.apache.hadoop.hbase.regionserver.BloomType.valueOf(bloomtype)) else - raise(ArgumentError, "BloomFilter type #{bloomtype} is not supported. Use one of " + org.apache.hadoop.hbase.regionserver.StoreFile::BloomType.constants.join(' ')) + raise(ArgumentError, "BloomFilter type #{bloomtype} is not supported. Use one of " + org.apache.hadoop.hbase.regionserver.BloomType.constants.join(' ')) end end if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::COMPRESSION)