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 7DC1B9694 for ; Tue, 11 Sep 2012 03:28:08 +0000 (UTC) Received: (qmail 82664 invoked by uid 500); 11 Sep 2012 03:28:08 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 82600 invoked by uid 500); 11 Sep 2012 03:28:08 -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 82571 invoked by uid 99); 11 Sep 2012 03:28:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 03:28:07 +0000 Date: Tue, 11 Sep 2012 14:28:07 +1100 (NCT) From: "Vinod Kumar Vavilapalli (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: <1959289717.61519.1347334087757.JavaMail.jiratomcat@arcas> Subject: [jira] [Moved] (YARN-97) nodemanager depends on /bin/bash 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-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kumar Vavilapalli moved MAPREDUCE-4101 to YARN-97: -------------------------------------------------------- Component/s: (was: nodemanager) nodemanager Affects Version/s: (was: trunk) (was: 0.23.1) Key: YARN-97 (was: MAPREDUCE-4101) Project: Hadoop YARN (was: Hadoop Map/Reduce) > nodemanager depends on /bin/bash > -------------------------------- > > Key: YARN-97 > URL: https://issues.apache.org/jira/browse/YARN-97 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Environment: FreeBSD 8.2 / 64 bit > Reporter: Radim Kolar > Labels: patch > Attachments: bash-replace-by-sh.txt > > > Currently nodemanager depends on bash shell. It should be well documented for system not having bash installed by default such as FreeBSD. Because only basic functionality of bash is used, probably changing bash to /bin/sh would work enough. > i found 2 cases: > 1. DefaultContainerExecutor.java creates file with /bin/bash hardcoded in writeLocalWrapperScript. (this needs bash in /bin) > 2. yarn-hduser-nodemanager-ponto.amerinoc.com.log:2012-04-03 19:50:10,798 INFO org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: launchContainer: [bash, -c, /tmp/nm-local-dir/usercache/hduser/appcache/application_1333474251533_0002/container_1333474251533_0002_01_000012/default_container_executor.sh] > this created script is also launched by bash - bash anywhere in path works - in freebsd it is /usr/local/bin/bash -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira