You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Paco Nathan (JIRA)" <ji...@apache.org> on 2008/11/03 20:50:44 UTC
[jira] Issue Comment Edited: (HADOOP-4559) Rest API for retrieving
job / task statistics
[ https://issues.apache.org/jira/browse/HADOOP-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644792#action_12644792 ]
pacoid edited comment on HADOOP-4559 at 11/3/08 11:50 AM:
---------------------------------------------------------------
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();
String url = "http://localhost:50030/api.jsp?info=jobdetails&id=" + id.getId();
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod(url);
client.executeMethod(method);
String logData = method.getResponseBodyAsString();
method.releaseConnection();
was (Author: pacoid):
HADOOP-4559 provides a workaround for the issue described in HADOOP-3850. We can now access the log data by making REST calls to JSP provided in 3850.
RunningJob currentjob = JobClient.runJob(job_conf);
String urlPrefix = "http://localhost:50030/api.jsp?info=jobdetails&id=";
final JobID id = currentjob.getID();
final int id_int = id.getId();
final String url = urlPrefix + id_int;
final String json = getStringFromREST(url);
> Rest API for retrieving job / task statistics
> ----------------------------------------------
>
> Key: HADOOP-4559
> URL: https://issues.apache.org/jira/browse/HADOOP-4559
> Project: Hadoop Core
> Issue Type: New Feature
> Reporter: Florian Leibert
> Priority: Trivial
> Fix For: 0.20.0
>
> Attachments: HADOOP-4559.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> a rest api that returns a simple JSON containing information about a given job such as: min/max/avg times per task, failed tasks, etc. This would be useful in order to allow external restart or modification of parameters of a run.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.