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 0E386200B8D for ; Fri, 23 Sep 2016 23:15:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0CD83160ACF; Fri, 23 Sep 2016 21:15:23 +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 4D388160ADA for ; Fri, 23 Sep 2016 23:15:22 +0200 (CEST) Received: (qmail 54173 invoked by uid 500); 23 Sep 2016 21:15:21 -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 53768 invoked by uid 99); 23 Sep 2016 21:15:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2016 21:15:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D57172C0B07 for ; Fri, 23 Sep 2016 21:15:20 +0000 (UTC) Date: Fri, 23 Sep 2016 21:15:20 +0000 (UTC) From: "Botong Huang (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5525) Make log aggregation service class configurable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Sep 2016 21:15:23 -0000 [ https://issues.apache.org/jira/browse/YARN-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517594#comment-15517594 ] Botong Huang commented on YARN-5525: ------------------------------------ Thank [~subru] for the review and comments. Let me provide some context why we are doing this. By changing {{AppLogAggregator}} we can only customize the per app log aggregation behavior. One reason that we also want to customize {{LogAggregationService}} is to allow a different root log directory to upload logs to per app, whereas in the current implementation, logs in every app are uploaded to a same (configurable) location in {{LogAggregationService.remoteRootLogDir}}. In general, if we want to make log aggregation pluggable, I think {{LogAggregationService}} is the right place because it is the entry service class. Besides, I have a question regarding all the {{private}} to {{protected}} changes, where I am sure what is the right thing to do. In general, making log aggregation service class configurable will suffice and people can plug in any other implementation they need, without needing to modify {{LogAggregationService}} and {{AppLogAggregator}} at all. However, in our case, we only need to customize some features out of the current implementation. Rather copy all the code and modify on top, I implemented mine extending the current ones, so that lots of nice feature are inherited. The code is much less and easier to maintain, by simply override the methods that we need to customize. This is where the {{private}} to {{protected}} changes are needed so that the member variables and methods are visible to the subclasses. > Make log aggregation service class configurable > ----------------------------------------------- > > Key: YARN-5525 > URL: https://issues.apache.org/jira/browse/YARN-5525 > Project: Hadoop YARN > Issue Type: Improvement > Components: log-aggregation > Reporter: Giovanni Matteo Fumarola > Assignee: Botong Huang > Priority: Minor > Attachments: YARN-5525.v1.patch, YARN-5525.v2.patch, YARN-5525.v3.patch > > > Make the log aggregation class configurable and extensible, so that alternative log aggregation behaviors like app specific log aggregation directory, log aggregation format can be implemented and plugged in. -- 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