You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2014/10/31 19:31:34 UTC
[jira] [Commented] (YARN-2788) yarn logs -applicationId on 2.6.0
should support logs written by 2.4.0
[ https://issues.apache.org/jira/browse/YARN-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14192210#comment-14192210 ]
Xuan Gong commented on YARN-2788:
---------------------------------
This is the incompatible issue. It happens when we are trying to read the 2.4.0 logs. The logs from 2.4 does not have logUploadedTime (this parameter is added into LogValue.https://issues.apache.org/jira/browse/YARN-2703) which will cause this exception.
To solve this, we could simply write logUploadedTime with the format "time_stamp:logUploadedTimeKey", and check for a "logUploadedTimeKey" prefix on read.
> yarn logs -applicationId on 2.6.0 should support logs written by 2.4.0
> ----------------------------------------------------------------------
>
> Key: YARN-2788
> URL: https://issues.apache.org/jira/browse/YARN-2788
> Project: Hadoop YARN
> Issue Type: Bug
> Components: log-aggregation
> Affects Versions: 2.6.0
> Reporter: Gopal V
> Assignee: Xuan Gong
> Attachments: YARN-2788.1.patch
>
>
> Log format version needs to be upped between 2.4.0 and 2.6.0
> {code}
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:589)
> at java.lang.Long.parseLong(Long.java:631)
> at org.apache.hadoop.yarn.logaggregation.AggregatedLogFormat$ContainerLogsReader.nextLog(AggregatedLogFormat.java:765)
> at org.apache.hadoop.yarn.webapp.log.AggregatedLogsBlock.readContainerLogs(AggregatedLogsBlock.java:197)
> at org.apache.hadoop.yarn.webapp.log.AggregatedLogsBlock.render(AggregatedLogsBlock.java:166)
> at org.apache.hadoop.yarn.webapp.view.HtmlBlock.render(HtmlBlock.java:67)
> at org.apache.hadoop.yarn.webapp.view.HtmlBlock.renderPartial(HtmlBlock.java:77)
> at org.apache.hadoop.yarn.webapp.View.render(View.java:235)
> at org.apache.hadoop.yarn.webapp.view.HtmlPage$Page.subView(HtmlPage.java:49)
> at org.apache.hadoop.yarn.webapp.hamlet.HamletImpl$EImp._v(HamletImpl.java:117)
> at org.apache.hadoop.yarn.webapp.hamlet.Hamlet$TD._(Hamlet.java:845)
> at org.apache.hadoop.yarn.webapp.view.TwoColumnLayout.render(TwoColumnLayout.java:71)
> at org.apache.hadoop.yarn.webapp.view.HtmlPage.render(HtmlPage.java:82)
> at org.apache.hadoop.yarn.webapp.Controller.render(Controller.java:212)
> at org.apache.hadoop.mapreduce.v2.hs.webapp.HsController.logs(HsController.java:178)
> ... 40 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)