AnsweredAssumed Answered

Fetching Job Metrics and Task Metrics

Question asked by johnshaan on Feb 19, 2013
Latest reply on Apr 11, 2013 by shaka
All,

I have a 5 node setup with 4 data nodes and the 5th node running jobtracker, etc. I am running 10s of jobs every day. I want to write a program to pull the job metrics and task metrics for each job that ran previous day - for reporting purposes.

What is the best approach to do this?

I tried the following API:

https://<mynode>:8443/api/job/table?filter[jid=job_201302140053_0008]&columns=comma-separated-set-of-columns

First, it came out with the following error and second it does not seem to provide all the values (as provided in the history viewer as provided in http://<mynode>:50030. Any ideas?
<code>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 403 Invalid Cookie</title>
</head>
<body><h2>HTTP ERROR: 403</h2><pre>Invalid Cookie</pre>
<p>RequestURI=/api/job/table</p><p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>                                               
</body>
</html>
</code>

Outcomes