Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 7E7AB1768C for ; Tue, 7 Oct 2014 17:53:36 +0000 (UTC) Received: (qmail 77491 invoked by uid 500); 7 Oct 2014 17:53:36 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 77430 invoked by uid 500); 7 Oct 2014 17:53:36 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 77417 invoked by uid 99); 7 Oct 2014 17:53:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 17:53:36 +0000 Date: Tue, 7 Oct 2014 17:53:36 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-7984) Add hadoop --loglevel option to change log level 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/HADOOP-7984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162191#comment-14162191 ] Chris Nauroth commented on HADOOP-7984: --------------------------------------- Nice work, Akira! I tested patch v4, calling all 4 main entry points, with and without a --loglevel option. I did find one more spot that needs a change. In yarn-env.cmd, we have this code: {code} if not defined YARN_ROOT_LOGGER ( set YARN_ROOT_LOGGER=INFO,console ) {code} It needs to be changed to this: {code} if not defined YARN_ROOT_LOGGER ( set YARN_ROOT_LOGGER=%HADOOP_LOGLEVEL%,console ) {code} I'm +1 for the trunk patch after that small change. However, I should mention that I didn't review the bash changes. [~aw], are you ready to +1 on the bash side, or do you have more feedback? After a branch-2 patch is available, I'd like to retest there. > Add hadoop --loglevel option to change log level > ------------------------------------------------ > > Key: HADOOP-7984 > URL: https://issues.apache.org/jira/browse/HADOOP-7984 > Project: Hadoop Common > Issue Type: New Feature > Components: scripts > Reporter: Eli Collins > Assignee: Akira AJISAKA > Priority: Minor > Labels: newbie > Attachments: HADOOP-7984-branch-2.patch, HADOOP-7984.3.patch, HADOOP-7984.4.patch, HADOOP-7984.patch, HADOOP-7984.patch > > > It would be helpful if bin/hadoop had --loglevel option to change the log level. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)