From 13d46e7f8cd488d9d352baef4eacb0d8681d0295 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 --- 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 53a8137fc0cb..453b7ae1af6e 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -1182,7 +1182,7 @@ def cfd(arg, tdb) if org.apache.hadoop.hbase.regionserver.BloomType.constants.include?(bloomtype) cfdb.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?(ColumnFamilyDescriptorBuilder::COMPRESSION)