hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r757958 - in /hadoop/core/trunk: CHANGES.txt bin/hadoop-config.sh
Date Tue, 24 Mar 2009 19:06:03 GMT
Author: szetszwo
Date: Tue Mar 24 19:06:02 2009
New Revision: 757958

URL: http://svn.apache.org/viewvc?rev=757958&view=rev
Log:
HADOOP-5564. Limit the JVM heap size in the java command for initializing JAVA_PLATFORM. 
(Suresh Srinivas via szetszwo)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/bin/hadoop-config.sh

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=757958&r1=757957&r2=757958&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Tue Mar 24 19:06:02 2009
@@ -1086,6 +1086,9 @@
     HADOOP-5484. TestRecoveryManager fails wtih FileAlreadyExistsException.
     (Amar Kamat via hairong)
 
+    HADOOP-5564. Limit the JVM heap size in the java command for initializing
+    JAVA_PLATFORM.  (Suresh Srinivas via szetszwo)
+
 Release 0.19.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/bin/hadoop-config.sh
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/bin/hadoop-config.sh?rev=757958&r1=757957&r2=757958&view=diff
==============================================================================
--- hadoop/core/trunk/bin/hadoop-config.sh (original)
+++ hadoop/core/trunk/bin/hadoop-config.sh Tue Mar 24 19:06:02 2009
@@ -182,7 +182,7 @@
 # setup 'java.library.path' for native-hadoop code if necessary
 JAVA_LIBRARY_PATH=''
 if [ -d "${HADOOP_CORE_HOME}/build/native" -o -d "${HADOOP_CORE_HOME}/lib/native" ]; then
-  JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} org.apache.hadoop.util.PlatformName | sed
-e "s/ /_/g"`
+  JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} -Xmx32m org.apache.hadoop.util.PlatformName
| sed -e "s/ /_/g"`
   
   if [ -d "$HADOOP_CORE_HOME/build/native" ]; then
     JAVA_LIBRARY_PATH=${HADOOP_CORE_HOME}/build/native/${JAVA_PLATFORM}/lib



Mime
View raw message