return new ZooKeeperInstance(conf.get(INSTANCE_NAME), conf.get(ZOOKEEPERS));
}
protected static TabletLocator getTabletLocator(JobContext job) throws TableNotFoundException {
if (job.getConfiguration().getBoolean(MOCK, false))
return new MockTabletLocator();
Instance instance = getInstance(job);
String username = getUsername(job);
byte[] password = getPassword(job);
String tableName = getTablename(job);
return TabletLocator.getInstance(instance, new AuthInfo(username, password, instance.getInstanceID()), new Text(Tables.getTableId(instance, tableName)));