hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@hortonworks.com>
Subject Re: Parsing job history logs [Hadoop 23]
Date Mon, 05 Dec 2011 08:06:57 GMT
 You can take a look at JobHistoryUtils in
org.apache.hadoop.mapreduce.v2.jobhistory. This might be helpful for
programmatic api to get the jobhistory information.


On Sat, Dec 3, 2011 at 12:37 PM, RD <rdsr.me@gmail.com> wrote:
> For Parsing job history logs in H23, One way I see is to figure out the
> history file path
> (JobHistoryUtils.getConfiguredHistoryServerDoneDirPrefix(conf)/YYYY/MM/DD/<job
> serial number>/<job_id>-*.jhist) .
> Then parse it with JobHistoryParser to get a JobInfo object out of it.
> There's also a JobHistory server now, but I don't see code which would
> return me jobhistory file location or some parseable content (json?)
> for constructing the Jobinfo obj.
> I was just curious that whether the first approach is OK, or are there more
> better ways to achieve this?

View raw message