Connector conn = null;
if (scanOffline) {
Random random = new Random();
clone = table + "_" + String.format("%016x", Math.abs(random.nextLong()));
ZooKeeperInstance zki = new ZooKeeperInstance(instance, zookeepers);
conn = zki.getConnector(user, pass.getBytes());
conn.tableOperations().clone(table, clone, true, new HashMap<String,String>(), new HashSet<String>());
ranges = conn.tableOperations().splitRangeByTablets(clone, new Range(), Integer.parseInt(maxMaps));
conn.tableOperations().offline(clone);
} else {
ranges = new ZooKeeperInstance(instance, zookeepers).getConnector(user, pass).tableOperations()
.splitRangeByTablets(table, new Range(), Integer.parseInt(maxMaps));
}
job.setInputFormatClass(AccumuloInputFormat.class);
Authorizations authorizations;