static { conf = HBaseConfiguration.create(); conf.set( ConfigProperties.CONFIG_NAME_HBASE_MASTER, config.getProperty(ConfigProperties.CONFIG_NAME_HBASE_MASTER)); conf.set( ConfigProperties.CONFIG_NAME_HBASE_ZOOKEEPER_PROPRERTY_CLIENTPORT, config.getProperty(ConfigProperties.CONFIG_NAME_HBASE_ZOOKEEPER_PROPRERTY_CLIENTPORT)); conf.set( ConfigProperties.CONFIG_NAME_HBASE_ZOOKEEPER_QUORUM, config.getProperty(ConfigProperties.CONFIG_NAME_HBASE_ZOOKEEPER_QUORUM)); try { master = new HMaster(conf); watcher = master.getZooKeeperWatcher(); } catch (Exception e) { e.printStackTrace(); } }