### Eclipse Workspace Patch 1.0 #P hbase-trunk Index: src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java =================================================================== --- src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java (revision 782265) +++ src/java/org/apache/hadoop/hbase/mapred/TableMapReduceUtil.java (working copy) @@ -114,7 +114,7 @@ * @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 @@ * @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 @@ * @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 @@ * @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();