From 31e192b27a5b40f1946af0448738e35728b6219b Mon Sep 17 00:00:00 2001 From: imbajin Date: Sun, 21 Jun 2020 01:02:49 +0800 Subject: [PATCH] HBASE-24601: Change default Hfile storage policy from HOT to NONE for HDFS --- .../java/org/apache/hadoop/hbase/regionserver/HStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java index f9b7e1c00692..9a3580d96b5f 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java @@ -139,8 +139,8 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, "hbase.server.compactchecker.interval.multiplier"; public static final String BLOCKING_STOREFILES_KEY = "hbase.hstore.blockingStoreFiles"; public static final String BLOCK_STORAGE_POLICY_KEY = "hbase.hstore.block.storage.policy"; - // keep in accordance with HDFS default storage policy - public static final String DEFAULT_BLOCK_STORAGE_POLICY = "HOT"; + // "NONE" is not a valid storage policy and means we defer the policy to HDFS + public static final String DEFAULT_BLOCK_STORAGE_POLICY = "NONE"; public static final int DEFAULT_COMPACTCHECKER_INTERVAL_MULTIPLIER = 1000; public static final int DEFAULT_BLOCKING_STOREFILE_COUNT = 16;