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 "Shen Yinjie (JIRA)" <ji...@apache.org> on 2016/12/15 08:11:58 UTC
[jira] [Comment Edited] (YARN-6006) Log aggregation causes
nodemanager OOM
[ https://issues.apache.org/jira/browse/YARN-6006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15750717#comment-15750717 ]
Shen Yinjie edited comment on YARN-6006 at 12/15/16 8:11 AM:
-------------------------------------------------------------
refer to the code in {{AggregatedLogFormat.java}}
{code} private void writeVersion() throws IOException {
DataOutputStream out = this.writer.prepareAppendKey(-1);
VERSION_KEY.write(out);
out.close();
out = this.writer.prepareAppendValue(-1);
out.writeInt(VERSION);
out.close();
} {code}
{{DataOutputStream out}} may cannot be closed while exception occurs.so need to add {{finally}} module to ensure stream closed..
was (Author: shenyinjie):
refer to code.
{code} private void writeVersion() throws IOException {
DataOutputStream out = this.writer.prepareAppendKey(-1);
VERSION_KEY.write(out);
out.close();
out = this.writer.prepareAppendValue(-1);
out.writeInt(VERSION);
out.close();
} {code}
{{DataOutputStream out}} may cannot be closed while exception occurs.so need to add {{finally}} module to ensure stream closed..
> Log aggregation causes nodemanager OOM
> --------------------------------------
>
> Key: YARN-6006
> URL: https://issues.apache.org/jira/browse/YARN-6006
> Project: Hadoop YARN
> Issue Type: Bug
> Components: nodemanager
> Affects Versions: 2.6.0
> Reporter: Shen Yinjie
> Attachments: YARN-6006_1.patch, e.png
>
>
> log aggregation is enabled, nodemanager died with oom exception. exception as sreenshot.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org