if (opts.scanOffline) {
Random random = new Random();
clone = opts.getTableName() + "_" + String.format("%016x", (random.nextLong() & 0x7fffffffffffffffl));
conn = opts.getConnector();
conn.tableOperations().clone(opts.getTableName(), clone, true, new HashMap<String,String>(), new HashSet<String>());
ranges = conn.tableOperations().splitRangeByTablets(opts.getTableName(), new Range(), opts.maxMaps);
conn.tableOperations().offline(clone);
AccumuloInputFormat.setInputTableName(job, clone);
AccumuloInputFormat.setOfflineTableScan(job, true);
} else {
ranges = opts.getConnector().tableOperations().splitRangeByTablets(opts.getTableName(), new Range(), opts.maxMaps);