TableInputFormat.setInputPaths(job, new Path(pathTable1));
TableInputFormat.requireSortedTable(job, null);
TableInputFormat tif = new TableInputFormat();
SortedTableSplit split = (SortedTableSplit) tif.getSplits(job, true).get(0);
TableScanner scanner = reader.getScanner(split.getBegin(), split.getEnd(), true);
BytesWritable key = new BytesWritable();
Tuple rowValue = TypesUtils.createTuple(scanner.getSchema());
Object lastVal = null;
int numbCols1 = 0;