You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by mc...@apache.org on 2005/06/30 21:52:50 UTC

svn commit: r208670 - /lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp

Author: mc
Date: Thu Jun 30 12:52:48 2005
New Revision: 208670

URL: http://svn.apache.org/viewcvs?rev=208670&view=rev
Log:

  Now display thrown-stack information for each task.


Modified:
    lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp

Modified: lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp?rev=208670&r1=208669&r2=208670&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp (original)
+++ lucene/nutch/branches/mapred/src/webapps/jobtracker/jobdetails.jsp Thu Jun 30 12:52:48 2005
@@ -13,8 +13,8 @@
   JobProfile profile = (job != null) ? (job.getProfile()) : null;
   JobStatus status = (job != null) ? (job.getStatus()) : null;
 
-  Vector mapTaskReports[] = job.getMapTaskReport(jobid);
-  Vector reduceTaskReports[] = job.getReduceTaskReport(jobid);
+  Vector mapTaskReports[] = tracker.getMapTaskReport(jobid);
+  Vector reduceTaskReports[] = tracker.getReduceTaskReport(jobid);
 %>
 
 <html>
@@ -38,12 +38,20 @@
 <h2>Map Tasks</h2>
   <center>
   <table border=2 cellpadding="5" cellspacing="2">
-  <tr><td align="center" colspan="4">Map Task Id</td><td>Pct Complete</td><td>Diagnostic Text</td></tr>
+  <tr><td align="center">Map Task Id</td><td>Pct Complete</td><td>Diagnostic Text</td></tr>
 
   <%
     for (int i = 0; i < mapTaskReports.length; i++) {
       Vector v = mapTaskReports[i];
-      out.print("<tr><td>" + v.elementAt(0) + "</td><td>" + v.elementAt(1) + "</td><td>" + v.elementAt(2) + "</td></tr>\n");
+      out.print("<tr><td>" + v.elementAt(0) + "</td><td>" + v.elementAt(1) + "</td>");
+      if (v.size() == 2) {
+        out.print("<td></td>");
+      } else {
+        for (int j = 2; j < v.size(); j++) {
+          out.print("<td>" + v.elementAt(j) + "</td>");
+        }
+      }
+      out.print("</tr>\n");
     }
   %>
   </table>
@@ -59,7 +67,15 @@
   <%
     for (int i = 0; i < reduceTaskReports.length; i++) {
       Vector v = reduceTaskReports[i];
-      out.print("<tr><td>" + v.elementAt(0) + "</td><td>" + v.elementAt(1) + "</td><td>" + v.elementAt(2) + "</td></tr>\n");
+      out.print("<tr><td>" + v.elementAt(0) + "</td><td>" + v.elementAt(1) + "</td>");
+      if (v.size() == 2) {
+        out.print("<td></td>");
+      } else {
+        for (int j = 2; j < v.size(); j++) {
+          out.print("<td>" + v.elementAt(j) + "</td>");
+        }
+      }
+      out.print("</tr>\n");
     }
   %>
   </table>