if (hbaseIndexerName == null) {
throw new IllegalStateException("--hbase-indexer-name must be supplied if --hbase-indexer-zk is specified");
}
StateWatchingZooKeeper zk = null;
try {
zk = new StateWatchingZooKeeper(hbaseIndexerZkHost, 30000);
IndexerModelImpl indexerModel = new IndexerModelImpl(zk, conf.get(ConfKeys.ZK_ROOT_NODE, "/ngdata/hbaseindexer"));
IndexerDefinition indexerDefinition = indexerModel.getIndexer(hbaseIndexerName);
hbaseIndexerComponentFactory = indexerDefinition.getIndexerComponentFactory();
configuration = indexerDefinition.getConfiguration();
if (indexerDefinition.getConnectionParams() != null) {