public static void configureIncrementalLoad(Job job, Table table, RegionLocator regionLocator)
    throws IOException {
    configureIncrementalLoad(job, table.getDescriptor(), regionLocator);
    configureRemoteCluster(job, table.getConfiguration());
  }
Configure a MapReduce Job to perform an incremental load into the given table. This
<ul>
<li>Inspects the table to configure a total order partitioner</li>
<li>Uploads the partitions file to the cluster and adds it to the DistributedCache</li>
<li>Sets the number of reduce tasks to match the current number of regions</li>
<li>Sets the output key/value class to match HFileOutputFormat2's requirements</li>
<li>Sets the reducer up to perform the appropriate sorting (either KeyValueSortReducer or
PutSortReducer)</li>
<li>Sets the HBase cluster key to load region locations for locality-sensitive</li>
</ul>
The user should be sure to set the map output value class to either KeyValue or Put before
running this function.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java