[ 
https://issues.apache.org/jira/browse/HADOOP-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arun C Murthy updated HADOOP-1274:
----------------------------------

    Status: Open  (was: Patch Available)

Amareshwari, the patch still doesn't deprecate {{ClusterStatus.getMaxTasks}}...

{noformat}
Index: src/java/org/apache/hadoop/mapred/ClusterStatus.java
===================================================================
--- src/java/org/apache/hadoop/mapred/ClusterStatus.java        (revision 
593416)
+++ src/java/org/apache/hadoop/mapred/ClusterStatus.java        (working copy)
@@ -111,10 +117,31 @@
    * @return the maximum capacity for running tasks in the cluster.
    */
   public int getMaxTasks() {
-    return max_tasks;
+    LOG.warn("ClusterStatus.getMaxTasks()is deprecated. Use " +
+             "ClusterStatus.getMaxMapTasks() and " +
+             "ClusterStatus.getMaxReduceTasks() instead.");
+    return (max_map_tasks + max_reduce_tasks);
+  }
{noformat}

should look like:

{noformat}
Index: src/java/org/apache/hadoop/mapred/ClusterStatus.java
===================================================================
--- src/java/org/apache/hadoop/mapred/ClusterStatus.java        (revision 
593416)
+++ src/java/org/apache/hadoop/mapred/ClusterStatus.java        (working copy)
@@ -111,10 +117,31 @@
    * @return the maximum capacity for running tasks in the cluster.
+ * @deprecated Use [EMAIL PROTECTED] #getMaxMapTasks()} and/or [EMAIL 
PROTECTED] #getMaxReduceTasks()}
    */
   public int getMaxTasks() {
-    return max_tasks;
+    LOG.warn("ClusterStatus.getMaxTasks()is deprecated. Use " +
+             "ClusterStatus.getMaxMapTasks() and " +
+             "ClusterStatus.getMaxReduceTasks() instead.");
+    return (max_map_tasks + max_reduce_tasks);
+  }
{noformat}

Also, could you consider submitting a test case for this one? Thanks!

> Configuring different number of mappers and reducers per TaskTracker
> --------------------------------------------------------------------
>
>                 Key: HADOOP-1274
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1274
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: mapred
>            Reporter: Koji Noguchi
>            Assignee: Amareshwari Sri Ramadasu
>             Fix For: 0.16.0
>
>         Attachments: patch-1274.txt, patch-1274.txt, patch-1274.txt, 
> patch-1274.txt
>
>
> Depending on the application, it sometimes make sense to have more mappers 
> than reducers assigned to each node. 
> (I'm assuming user either has a dedicated cluster or use HOD.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to