From 0a8b1c4808ba2df9302866217f3ed94484a640fb Mon Sep 17 00:00:00 2001 From: xiaozhang Date: Wed, 11 Oct 2023 16:47:22 +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. --- 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 e90e37c4bc63..c028321feecc 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -1172,7 +1172,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)