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 8588417817 for ; Tue, 12 May 2015 23:42:00 +0000 (UTC) Received: (qmail 354 invoked by uid 500); 12 May 2015 23:42:00 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 299 invoked by uid 500); 12 May 2015 23:42:00 -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 288 invoked by uid 99); 12 May 2015 23:42:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2015 23:42:00 +0000 Date: Tue, 12 May 2015 23:42:00 +0000 (UTC) From: "Sanjay Radia (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11966) Variable cygwin is undefined in hadoop-config.sh when executed through hadoop-daemon.sh. 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-11966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541017#comment-14541017 ] Sanjay Radia commented on HADOOP-11966: --------------------------------------- You comment says that you tested hadoop-daemon.sh. Have you tested the hadoop, yarn and mapred commands (your change affects all of them and yes it should work since they all source hadoop-config.sh > Variable cygwin is undefined in hadoop-config.sh when executed through hadoop-daemon.sh. > ---------------------------------------------------------------------------------------- > > Key: HADOOP-11966 > URL: https://issues.apache.org/jira/browse/HADOOP-11966 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 2.7.0 > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Priority: Critical > Attachments: HADOOP-11966-branch-2.001.patch > > > HADOOP-11464 reinstated support for running the bash scripts through Cygwin. The logic involves setting a {{cygwin}} flag variable to indicate if the script is executing through Cygwin. The flag is set in all of the interactive scripts: {{hadoop}}, {{hdfs}}, {{yarn}} and {{mapred}}. The flag is not set through hadoop-daemon.sh though. This can cause an erroneous overwrite of {{HADOOP_HOME}} and {{JAVA_LIBRARY_PATH}} inside hadoop-config.sh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)