hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch huang <justlo...@gmail.com>
Subject issue about hive server2 heapsize tuning
Date Fri, 24 Oct 2014 08:29:43 GMT
hi,maillist:
          i install hive-metastore and hive-server2 on one box,and i set
heapsize 4096 on hive-env.sh
but i only see hive-metastore use 4096m memory ,server2 still use 2000m
memory why?

# ps -ef|grep metastore
root     22540 62329  0 16:23 pts/15   00:00:00 grep metastore
hive     56932     1  0 Sep24 ?        00:28:16
/usr/java/jdk1.7.0_45/bin/java -Xmx4096m -Dhive.log.dir=/var/log/hive
-Dhive.log.file=hive-metastore.log -Dhive.log.threshold=INFO
-Dhadoop.log.dir=/usr/lib/hadoop/logs -Dhadoop.log.file=hadoop.log
-Dhadoop.home.dir=/usr/lib/hadoop -Dhadoop.id.str=
-Dhadoop.root.logger=INFO,console
-Djava.library.path=/usr/lib/hadoop/lib/native
-Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true
-Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.util.RunJar
/usr/lib/hive/lib/hive-service-0.12.0-cdh5.1.0.jar
org.apache.hadoop.hive.metastore.HiveMetaStore
# ps -ef|grep server2
hive     14860     1  6 15:23 ?        00:03:54
/usr/java/jdk1.7.0_45/bin/java -Xmx2000m -Dhive.log.dir=/var/log/hive
-Dhive.log.file=hive-server2.log -Dhive.log.threshold=INFO
-Dhadoop.log.dir=/usr/lib/hadoop/logs -Dhadoop.log.file=hadoop.log
-Dhadoop.home.dir=/usr/lib/hadoop -Dhadoop.id.str=
-Dhadoop.root.logger=INFO,console
-Djava.library.path=/usr/lib/hadoop/lib/native
-Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true
-Dhadoop.security.logger=INFO,NullAppender org.apache.hadoop.util.RunJar
/usr/lib/hive/lib/hive-service-0.12.0-cdh5.1.0.jar
org.apache.hive.service.server.HiveServer2

# grep '^[^#]' hive-env.sh
export HADOOP_HEAPSIZE=4096

Mime
View raw message