Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 6209 invoked from network); 23 Jul 2009 18:39:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 18:39:39 -0000 Received: (qmail 67334 invoked by uid 500); 23 Jul 2009 18:40:44 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 67307 invoked by uid 500); 23 Jul 2009 18:40:44 -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 67297 invoked by uid 99); 23 Jul 2009 18:40:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 18:40:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 18:40:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA4C2234C004 for ; Thu, 23 Jul 2009 11:40:14 -0700 (PDT) Message-ID: <1278669946.1248374414813.JavaMail.jira@brutus> Date: Thu, 23 Jul 2009 11:40:14 -0700 (PDT) From: "ryan rawson (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6167) bin/hadoop script doesn't allow for different memory settings for each daemon type In-Reply-To: <128618595.1248313995284.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734692#action_12734692 ] ryan rawson commented on HADOOP-6167: ------------------------------------- I'm not sure this is true, my datanode processes are running like so: /usr/java/jdk1.6.0_14/bin/java -Xmx1000m -Dcom.sun.management.jmxremote -Xmx2000m -XX:+DoEscapeAnalysis (all the other arguments) in hadoop-env.sh i have: export HADOOP_DATANODE_OPTS="-Xmx2000m -XX:+DoEscapeAnalysis ...." how does this not work? > 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 > Attachments: hadoop > > > 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 is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.