diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 22c4570ff64..1018bd21a2b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -507,7 +507,7 @@ Server { private void initializeZKBasedSystemTrackers() throws IOException, InterruptedException, KeeperException { this.catalogTracker = createCatalogTracker(this.zooKeeper, this.conf, - this, conf.getInt("hbase.master.catalog.timeout", Integer.MAX_VALUE)); + this, conf.getInt("hbase.master.catalog.timeout", 600000)); this.catalogTracker.start(); this.balancer = LoadBalancerFactory.getLoadBalancer(conf); diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index 802ccb4dd09..ac28f57b7f6 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -766,7 +766,7 @@ public class HRegionServer implements ClientProtocol, // Create the catalog tracker and start it; this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, - this, this.conf.getInt("hbase.regionserver.catalog.timeout", Integer.MAX_VALUE)); + this, this.conf.getInt("hbase.regionserver.catalog.timeout", 600000)); catalogTracker.start(); } diff --git a/hbase-server/src/main/resources/hbase-default.xml b/hbase-server/src/main/resources/hbase-default.xml index 3943bdd9290..a986ceefad0 100644 --- a/hbase-server/src/main/resources/hbase-default.xml +++ b/hbase-server/src/main/resources/hbase-default.xml @@ -895,4 +895,14 @@ default log cleaners in the list as they will be overwritten in hbase-site.xml. + + hbase.regionserver.catalog.timeout + 600000 + Timeout value for the Catalog Janitor from the regionserver to META. + + + hbase.master.catalog.timeout + 600000 + Timeout value for the Catalog Janitor from the master to META. +