|
[
Permlink
| « Hide
]
Florian Leibert added a comment - 31/Oct/08 04:14 PM
This will provide a very simple api that allows to retrieve statistics about the tasks for a given jobid - such as average, min and max times per task, failed tasks per job, total job runtime, etc.
Florian Leibert made changes - 31/Oct/08 04:14 PM
Florian Leibert made changes - 31/Oct/08 04:15 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12393159/HADOOP-4559.patch against trunk revision 709609. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 Eclipse classpath. The patch retains Eclipse classpath integrity. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3515/testReport/ This message is automatically generated.
Paco Nathan made changes - 03/Nov/08 07:44 PM
HADOOP-4559 provides a workaround for part of the issue described in HADOOP-3850. Can now access log data by making REST calls to JSP provided in 3850. For example:
RunningJob currentjob = JobClient.runJob(job_conf); JobID id = currentjob.getID(); HttpClient client = new HttpClient(); client.executeMethod(method);
+1
Chris Douglas made changes - 08/Nov/08 12:49 AM
> Isn't most of this provided through job history?
No, not really. Not if a long-running workflow requires these measurements for automated decisions. While a human can read the job history data from JSP pages, there's no current means for the app code which calls ToolRunner to obtain that data and use it to alter the workflow. JobID id = currentjob.getID(); String url = "http://localhost:50030/api.jsp?info=jobdetails&id=" + id.getId(); Can't you just call this a JSP into the jobtracker instead? I hate to nitpick, but it's not REST style (client url construction), nor is the response (no links), and ASF code should (imvho) know the difference. If you want to be build REST style tooling around the tracker, I'd be happy to help with that. For example to scale this up to a lot of jobs and/or a lot of clients will require something that doesn't hammer the tracker. And iterating over the tracker seems like a linear bottleneck - O(1) key lookup would be much better.
Nigel Daley made changes - 15/Dec/08 07:51 PM
the previous version was a bit dirty. I think this one is quite an improvement. We're using it to gather a lot of stats for our job runs. It's not a servlet and doesn' contain HtmlUnit - I think one stats JSP doesn't justify adding another library to the distribution - also for the sake of simplicity this remains a JSP... Hope this is valuable for someone else as well - it really is useful for us to track performance when modifying our algorithm...
Florian Leibert made changes - 22/Dec/08 03:54 PM
Florian Leibert made changes - 22/Dec/08 03:54 PM
+1 to Bill's idea for a RESTy API, one that works long-haul.
Steve Loughran made changes - 23/Apr/09 11:18 AM
Aaron Kimball made changes - 30/Jun/09 12:01 AM
Aaron Kimball made changes - 30/Jun/09 12:03 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||