From 8da00b2768570af828c3b7ef88f00edfd636f478 Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Mon, 9 Jul 2018 21:09:09 -0500 Subject: [PATCH] HBASE-20862 Restore HConstants for compatibility Signed-off-by: zhangduo --- .../src/main/java/org/apache/hadoop/hbase/HConstants.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index 8e700f93d4a..284e925f816 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -258,6 +258,13 @@ public final class HConstants { public static final String ZOOKEEPER_TICK_TIME = ZK_CFG_PROPERTY_PREFIX + "tickTime"; + /** + * Will be removed in hbase 3.0 + * @deprecated use {@link #DEFAULT_ZOOKEEPER_MAX_CLIENT_CNXNS} instead + */ + @Deprecated + public static final int DEFAULT_ZOOKEPER_MAX_CLIENT_CNXNS = 300; + /** Default limit on concurrent client-side zookeeper connections */ public static final int DEFAULT_ZOOKEEPER_MAX_CLIENT_CNXNS = 300;