Return-Path: X-Original-To: apmail-tez-issues-archive@minotaur.apache.org Delivered-To: apmail-tez-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0022B17D3B for ; Tue, 10 Feb 2015 23:36:11 +0000 (UTC) Received: (qmail 91300 invoked by uid 500); 10 Feb 2015 23:36:12 -0000 Delivered-To: apmail-tez-issues-archive@tez.apache.org Received: (qmail 91107 invoked by uid 500); 10 Feb 2015 23:36:11 -0000 Mailing-List: contact issues-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list issues@tez.apache.org Received: (qmail 90986 invoked by uid 99); 10 Feb 2015 23:36:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2015 23:36:11 +0000 Date: Tue, 10 Feb 2015 23:36:11 +0000 (UTC) From: "Vinod Kumar Vavilapalli (JIRA)" To: issues@tez.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEZ-2073) SimpleHistoryLoggingService cannot be read by log aggregation (umask) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEZ-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315185#comment-14315185 ] Vinod Kumar Vavilapalli commented on TEZ-2073: ---------------------------------------------- bq. Is this something that also needs a fix in YARN? Or are there standard guidelines on what an app can/cannot do or should behave in a certain way? YARN cannot aggregate logs if logs generated by user apps don't have the 'right' permissions for YARN to be able to read them. bq. It may be ideal for YARN to provide the proper log directory umask settings so that YARN applications can write file that can be aggregated correctly. Umask is tied to processes not directories. And since the processes are user code, YARN cannot control it. > SimpleHistoryLoggingService cannot be read by log aggregation (umask) > --------------------------------------------------------------------- > > Key: TEZ-2073 > URL: https://issues.apache.org/jira/browse/TEZ-2073 > Project: Apache Tez > Issue Type: Bug > Reporter: Jonathan Eagles > > Nodemanager logs have the following log aggregation error. > In a system where default fs.permissions.umask-mode=077. All file can be aggregated except the Simple History file since it writes files using the system's default FileSystem umask. > {quote} > [LogAggregationService #278] ERROR logaggregation.AggregatedLogFormat: Error aggregating log file. Log file : /tmp/yarn-logs/application_1423009000687_15308/container_e04_1423009000687_15308_01_000001/history.txt.appattempt_1423009000687_15308_000001. /tmp/yarn-logs/application_1423009000687_15308/container_e04_1423009000687_15308_01_000001/history.txt.appattempt_1423009000687_15308_000001 (Permission denied) -- This message was sent by Atlassian JIRA (v6.3.4#6332)