Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 10D66200B8C for ; Wed, 17 Aug 2016 00:02:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D9D4160AA8; Tue, 16 Aug 2016 22:02:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5F017160ABC for ; Wed, 17 Aug 2016 00:02:23 +0200 (CEST) Received: (qmail 74143 invoked by uid 500); 16 Aug 2016 22:02:22 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 74063 invoked by uid 99); 16 Aug 2016 22:02:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 22:02:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 10F092C02AC for ; Tue, 16 Aug 2016 22:02:22 +0000 (UTC) Date: Tue, 16 Aug 2016 22:02:22 +0000 (UTC) From: "Xuan Gong (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5523) Yarn live log aggregation runs out of memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 22:02:24 -0000 [ https://issues.apache.org/jira/browse/YARN-5523?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15423= 473#comment-15423473 ]=20 Xuan Gong commented on YARN-5523: --------------------------------- Thanks for the review. [~varun_saxena] I have uploaded a new patch which added a unit testcase to verify whether w= e could get running container logs correctly. I also created a same patch f= or branch-2. > Yarn live log aggregation runs out of memory > -------------------------------------------- > > Key: YARN-5523 > URL: https://issues.apache.org/jira/browse/YARN-5523 > Project: Hadoop YARN > Issue Type: Bug > Components: log-aggregation > Affects Versions: 2.9.0 > Reporter: Prasanth Jayachandran > Assignee: Xuan Gong > Attachments: YARN-5523.1.patch, YARN-5523.branch-2.2.patch, YARN-= 5523.trunk.1.patch, YARN-5523.trunk.2.patch > > > Fetching a 256MB log from container caused OOM on client > {code} > [hive@ctr-e20-1468887904486-0007-01-000003 ~]$ yarn logs -applicationId a= pplication_1470931023753_0001 -log_files log_2016-08-11-21_3.done > logs > 16/08/11 21:58:11 INFO impl.TimelineClientImpl: Timeline service address:= http://ctr-e20-1468887904486-0007-01-000003.hwx.site:8188/ws/v1/timeline/ > 16/08/11 21:58:11 INFO client.RMProxy: Connecting to ResourceManager at c= tr-e20-1468887904486-0007-01-000003.hwx.site/172.27.8.192:8050 > 16/08/11 21:58:12 INFO client.AHSProxy: Connecting to Application History= server at ctr-e20-1468887904486-0007-01-000003.hwx.site/172.27.8.192:10200 > Can not find any log file matching the pattern: [log_2016-08-11-21_3.done= ] for the container: container_e04_1470931023753_0001_01_000001 within the = application: application_1470931023753_0001 > Can not find any log file matching the pattern: [log_2016-08-11-21_3.done= ] for the container: container_e04_1470931023753_0001_01_000002 within the = application: application_1470931023753_0001 > Can not find any log file matching the pattern: [log_2016-08-11-21_3.done= ] for the container: container_e04_1470931023753_0001_01_000003 within the = application: application_1470931023753_0001 > Can not find any log file matching the pattern: [log_2016-08-11-21_3.done= ] for the container: container_e04_1470931023753_0001_01_000004 within the = application: application_1470931023753_0001 > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > =E2=80=82=E2=80=82at java.util.Arrays.copyOf(Arrays.java:3332) > =E2=80=82=E2=80=82at java.lang.AbstractStringBuilder.expandCapacity(Abstr= actStringBuilder.java:137) > =E2=80=82=E2=80=82at java.lang.AbstractStringBuilder.ensureCapacityIntern= al(AbstractStringBuilder.java:121) > =E2=80=82=E2=80=82at java.lang.AbstractStringBuilder.append(AbstractStrin= gBuilder.java:569) > =E2=80=82=E2=80=82at java.lang.StringBuilder.append(StringBuilder.java:19= 0) > =E2=80=82=E2=80=82at com.sun.jersey.core.util.ReaderWriter.readFromAsStri= ng(ReaderWriter.java:172) > =E2=80=82=E2=80=82at com.sun.jersey.core.util.ReaderWriter.readFromAsStri= ng(ReaderWriter.java:157) > =E2=80=82=E2=80=82at com.sun.jersey.core.provider.AbstractMessageReaderWr= iterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:114) > =E2=80=82=E2=80=82at com.sun.jersey.core.impl.provider.entity.StringProvi= der.readFrom(StringProvider.java:73) > =E2=80=82=E2=80=82at com.sun.jersey.core.impl.provider.entity.StringProvi= der.readFrom(StringProvider.java:58) > =E2=80=82=E2=80=82at com.sun.jersey.api.client.ClientResponse.getEntity(C= lientResponse.java:553) > =E2=80=82=E2=80=82at com.sun.jersey.api.client.ClientResponse.getEntity(C= lientResponse.java:506) > =E2=80=82=E2=80=82at org.apache.hadoop.yarn.client.cli.LogsCLI.printConta= inerLogsFromRunningApplication(LogsCLI.java:477) > =E2=80=82=E2=80=82at org.apache.hadoop.yarn.client.cli.LogsCLI.fetchAppli= cationLogs(LogsCLI.java:950) > =E2=80=82=E2=80=82at org.apache.hadoop.yarn.client.cli.LogsCLI.runCommand= (LogsCLI.java:280) > =E2=80=82=E2=80=82at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCL= I.java:102) > =E2=80=82=E2=80=82at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsC= LI.java:307) > {code} -- 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