HBASE-1576 TIF needs to be able to set scanner caching size for smaller row tables & performance
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@787917 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44d6294ed7
commit
cc920fe6bb
|
@ -393,6 +393,8 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1532 UI Visibility into ZooKeeper
|
||||
HBASE-1572 Zookeeper log4j property set to ERROR on default, same output
|
||||
when cluster working and not working (Jon Gray via Stack)
|
||||
HBASE-1576 TIF needs to be able to set scanner caching size for smaller
|
||||
row tables & performance
|
||||
|
||||
OPTIMIZATIONS
|
||||
HBASE-1412 Change values for delete column and column family in KeyValue
|
||||
|
|
|
@ -168,5 +168,17 @@ public class TableMapReduceUtil {
|
|||
int regions = outputTable.getRegionsInfo().size();
|
||||
job.setNumMapTasks(regions);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the number of rows to return and cache with each scanner iteration.
|
||||
* Higher caching values will enable faster mapreduce jobs at the expense of
|
||||
* requiring more heap to contain the cached rows.
|
||||
*
|
||||
* @param job The current job configuration to adjust.
|
||||
* @param batchSize The number of rows to return in batch with each scanner
|
||||
* iteration.
|
||||
*/
|
||||
public static void setScannerCaching(JobConf job, int batchSize) {
|
||||
job.setInt("hbase.client.scanner.caching", batchSize);
|
||||
}
|
||||
}
|
|
@ -168,4 +168,16 @@ public class TableMapReduceUtil {
|
|||
job.setNumMapTasks(regions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the number of rows to return and cache with each scanner iteration.
|
||||
* Higher caching values will enable faster mapreduce jobs at the expense of
|
||||
* requiring more heap to contain the cached rows.
|
||||
*
|
||||
* @param job The current job configuration to adjust.
|
||||
* @param batchSize The number of rows to return in batch with each scanner
|
||||
* iteration.
|
||||
*/
|
||||
public static void setScannerCaching(JobConf job, int batchSize) {
|
||||
job.setInt("hbase.client.scanner.caching", batchSize);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue