[
https://issues.apache.org/jira/browse/MAPREDUCE-4283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Lowe updated MAPREDUCE-4283:
----------------------------------
Attachment: MAPREDUCE-4283.patch
Thanks for the review Sidd!
I changed AggregatedLogFormat.getContainerLogsReader to take a ContainerId
instead of a String.
I don't think there's an unbalanced pre block issue with start == end, as the
pre block is unconditionally opened at this line:
{code}
PRE<Hamlet> pre = html.pre();
{code}
and then unconditionally closed after the while read loop. I manually tested
it with start == end, and it created a degenerate pre block: {{<pre></pre>}}
Didn't see a JIRA go by about making AggregatedLogFormat Private/Unstable, so I
filed MAPREDUCE-4446 to track that issue.
> Display tail of aggregated logs by default
> ------------------------------------------
>
> Key: MAPREDUCE-4283
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-4283
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: jobhistoryserver, mrv2
> Affects Versions: 0.23.3, 2.1.0-alpha
> Reporter: Jason Lowe
> Assignee: Jason Lowe
> Attachments: MAPREDUCE-4283.patch, MAPREDUCE-4283.patch,
> MAPREDUCE-4283.patch, MAPREDUCE-4283.patch
>
>
> Similar to the manner in which the nodemanager webUI displays container logs,
> it would be very useful if the historyserver showed the trailing 4K or so of
> the aggregated logs with a link to see the full log.
> When debugging issues the relevant errors are usually at the end of the log,
> so showing just the last few K can enable quick diagnosis without waiting for
> what can be many megabytes of log data to download.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira