Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CFFE115C2 for ; Wed, 23 Jul 2014 20:08:41 +0000 (UTC) Received: (qmail 94146 invoked by uid 500); 23 Jul 2014 20:08:39 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 93927 invoked by uid 500); 23 Jul 2014 20:08:39 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 93805 invoked by uid 99); 23 Jul 2014 20:08:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 20:08:39 +0000 Date: Wed, 23 Jul 2014 20:08:39 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HADOOP-6167) bin/hadoop script doesn't allow for different memory settings for each daemon type 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-6167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer resolved HADOOP-6167. -------------------------------------- Resolution: Duplicate Closing this as a dupe of 9902 given that it has code in place to fix try to fix this issue. > bin/hadoop script doesn't allow for different memory settings for each daemon type > ---------------------------------------------------------------------------------- > > Key: HADOOP-6167 > URL: https://issues.apache.org/jira/browse/HADOOP-6167 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.20.0 > Reporter: Fernando Padilla > Attachments: hadoop, hadoop-script.diff > > > bin/hadoop assumes that all daemon types ( namenode, datanode, jobtracker, tasktracker ), all use the same memory settings.. (HADOOP_HEAPSIZE). > I propose changes to that script to allow overriding the default memory ( HADOOP_HEAPSIZE ), with daemon specific OPTS (HADOOP_NAMENODE_OPTS, etc ). > Basically at the bottom of the bin/hadoop script, it will check to see if the user has already set "-Xmx" in the HADOOP_OPTS variable.. if so, then it will ignore the JAVA_HEAP_SIZE variable.. > as such: > # run it > if [[ $HADOOP_OPTS == *-Xmx* ]]; then > exec "$JAVA" $HADOOP_OPTS -classpath "$CLASSPATH" $CLASS "$@" > else > exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS -classpath "$CLASSPATH" $CLASS "$@" > fi > I will attach the file as I have modified it.. -- This message was sent by Atlassian JIRA (v6.2#6252)