HBASE-1493 New TableMapReduceUtil methods should be static
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@782309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6af4292630
commit
af1175e44e
|
@ -163,6 +163,8 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1483 HLog split loses track of edits (Clint Morgan via Stack)
|
||||
HBASE-1484 commit log split writes files with newest edits first
|
||||
(since hbase-1430); should be other way round
|
||||
HBASE-1493 New TableMapReduceUtil methods should be static (Billy Pearson
|
||||
via Andrew Purtell)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -114,7 +114,7 @@ public class TableMapReduceUtil {
|
|||
* @param job The current job configuration to adjust.
|
||||
* @throws IOException When retrieving the table details fails.
|
||||
*/
|
||||
public void limitNumReduceTasks(String table, JobConf job)
|
||||
public static void limitNumReduceTasks(String table, JobConf job)
|
||||
throws IOException {
|
||||
HTable outputTable = new HTable(new HBaseConfiguration(job), table);
|
||||
int regions = outputTable.getRegionsInfo().size();
|
||||
|
@ -130,7 +130,7 @@ public class TableMapReduceUtil {
|
|||
* @param job The current job configuration to adjust.
|
||||
* @throws IOException When retrieving the table details fails.
|
||||
*/
|
||||
public void limitNumMapTasks(String table, JobConf job)
|
||||
public static void limitNumMapTasks(String table, JobConf job)
|
||||
throws IOException {
|
||||
HTable outputTable = new HTable(new HBaseConfiguration(job), table);
|
||||
int regions = outputTable.getRegionsInfo().size();
|
||||
|
@ -146,7 +146,7 @@ public class TableMapReduceUtil {
|
|||
* @param job The current job configuration to adjust.
|
||||
* @throws IOException When retrieving the table details fails.
|
||||
*/
|
||||
public void setNumReduceTasks(String table, JobConf job)
|
||||
public static void setNumReduceTasks(String table, JobConf job)
|
||||
throws IOException {
|
||||
HTable outputTable = new HTable(new HBaseConfiguration(job), table);
|
||||
int regions = outputTable.getRegionsInfo().size();
|
||||
|
@ -161,7 +161,7 @@ public class TableMapReduceUtil {
|
|||
* @param job The current job configuration to adjust.
|
||||
* @throws IOException When retrieving the table details fails.
|
||||
*/
|
||||
public void setNumMapTasks(String table, JobConf job)
|
||||
public static void setNumMapTasks(String table, JobConf job)
|
||||
throws IOException {
|
||||
HTable outputTable = new HTable(new HBaseConfiguration(job), table);
|
||||
int regions = outputTable.getRegionsInfo().size();
|
||||
|
|
Loading…
Reference in New Issue