the code :
private synchronized CatalogTracker getCatalogTracker()
throws ZooKeeperConnectionException, IOException {
CatalogTracker ct = null;
try {
ct = new CatalogTracker(this.conf);
ct.start();
} catch (InterruptedException e) {
// Let it out as an IOE for now until we redo all so tolerate IEs
Thread.currentThread().interrupt();
throw new IOException("Interrupted", e);
}
return ct;
}
I think we can make CatalogTracker be a object of HBaseAdmin class, can reduce
many object create and destroy, reduce client to ZK
At 2016-04-19 21:09:42, "WangYQ" <[email protected]> wrote:
in hbase 0.98.10, class "HBaseAdmin "
line 303, method "tableExists", will create a catalogTracker for every call
we can let a HBaseAdmin object use one CatalogTracker object, to reduce the
object create, connect zk and so on