Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> issure about different heapsize on namenode and datanode


Copy link to this message
-
issure about different heapsize on namenode and datanode
hi,all:
     what i want is allocate different heap size to namenode and datanode
,so i add the following info in hadoop-env.sh file

export HADOOP_NAMENODE_OPTS="-Xmx2048m"

but, i am very confuse about the output of ps , here is two -Xmx option
value ,i do not know which is the real heap size that the namenode
use,anyone can help?

# ps -ef|grep namenode
hdfs     14468     1 36 15:00 ?        00:00:05
/usr/java/jdk1.6.0_35/bin/java -Dproc_namenode
-Xmx1000m-Dhadoop.log.dir=/var/log/hadoop-hdfs
-Dhadoop.log.file=hadoop-hdfs-namenode-CHBM220.log
-Dhadoop.home.dir=/usr/lib/hadoop -Dhadoop.id.str=hdfs
-Dhadoop.root.logger=INFO,RFA
-Djava.library.path=/usr/lib/hadoop/lib/native
-Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true
-Xmx2048m -Dhadoop.security.logger=INFO,RFAS
org.apache.hadoop.hdfs.server.namenode.NameNode