diff --git a/CHANGES.txt b/CHANGES.txt index 0b4c0b7e8e9..b1cb4bd5190 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java b/src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java index 390c651edb4..05dbf0099f5 100644 --- a/src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java +++ b/src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java @@ -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();