Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 9FFE218349 for ; Mon, 8 Jun 2015 12:21:01 +0000 (UTC) Received: (qmail 16509 invoked by uid 500); 8 Jun 2015 12:21:01 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 16454 invoked by uid 500); 8 Jun 2015 12:21:01 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 16441 invoked by uid 99); 8 Jun 2015 12:21:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2015 12:21:01 +0000 Date: Mon, 8 Jun 2015 12:21:01 +0000 (UTC) From: "Steve Loughran (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-3755) Log the command of launching containers 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/YARN-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577097#comment-14577097 ] Steve Loughran commented on YARN-3755: -------------------------------------- I think this should be re-opened with YARN-3759 tagged as a duplicate. # one of the problems of pushing it to the framework is "what if you can't control that framework"? Because I spent a lot of time last week having to add the logging inside my own fork of spark do to an "env > $LOG_DIR/env" # your framework code doesn't know the CLI and env that is finally generated I propose, then, one of two options # that YARN has the option to log the env and CLI to the log directory # that we have a specific YARN log for app & container launch, which can be set to INFO to get this log information # that we start a section in the docs "troubleshooting YARN" which explains how to use this stuff. This patch would be basis the no. 2 item on that list; we just create a specific log for those messages. > Log the command of launching containers > --------------------------------------- > > Key: YARN-3755 > URL: https://issues.apache.org/jira/browse/YARN-3755 > Project: Hadoop YARN > Issue Type: Improvement > Affects Versions: 2.7.0 > Reporter: Jeff Zhang > Assignee: Jeff Zhang > Attachments: YARN-3755-1.patch, YARN-3755-2.patch > > > In the resource manager log, yarn would log the command for launching AM, this is very useful. But there's no such log in the NN log for launching containers. It would be difficult to diagnose when containers fails to launch due to some issue in the commands. Although user can look at the commands in the container launch script file, this is an internal things of yarn, usually user don't know that. In user's perspective, they only know what commands they specify when building yarn application. > {code} > 2015-06-01 16:06:42,245 INFO org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher: Command to launch container container_1433145984561_0001_01_000001 : $JAVA_HOME/bin/java -server -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN -Xmx1024m -Dlog4j.configuratorClass=org.apache.tez.common.TezLog4jConfigurator -Dlog4j.configuration=tez-container-log4j.properties -Dyarn.app.container.log.dir= -Dtez.root.logger=info,CLA -Dsun.nio.ch.bugLevel='' org.apache.tez.dag.app.DAGAppMaster 1>/stdout 2>/stderr > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)