From 251826e138b68b9a6b8cce52975756f61f7a5406 Mon Sep 17 00:00:00 2001 From: tedyu Date: Thu, 18 Jan 2018 07:58:44 -0800 Subject: [PATCH] HBASE-19806 Lower max versions for table column family of hbase:meta --- .../java/org/apache/hadoop/hbase/util/FSTableDescriptors.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java index 9ec5704c6da..c76cd902cd6 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java @@ -190,8 +190,8 @@ public class FSTableDescriptors implements TableDescriptors { .setBloomFilterType(BloomType.NONE) .build()) .addColumnFamily(ColumnFamilyDescriptorBuilder.newBuilder(HConstants.TABLE_FAMILY) - // Ten is arbitrary number. Keep versions to help debugging. - .setMaxVersions(10) + .setMaxVersions(conf.getInt(HConstants.HBASE_META_VERSIONS, + HConstants.DEFAULT_HBASE_META_VERSIONS)) .setInMemory(true) .setBlocksize(8 * 1024) .setScope(HConstants.REPLICATION_SCOPE_LOCAL)