You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by kh...@apache.org on 2014/04/12 03:29:01 UTC

svn commit: r1586805 - /hive/trunk/hcatalog/bin/hcat_server.sh

Author: khorgath
Date: Sat Apr 12 01:29:00 2014
New Revision: 1586805

URL: http://svn.apache.org/r1586805
Log:
HIVE-6480 : Metastore server startup script ignores ENV settings (Adam Faris via Sushanth Sowmyan)

Modified:
    hive/trunk/hcatalog/bin/hcat_server.sh

Modified: hive/trunk/hcatalog/bin/hcat_server.sh
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/bin/hcat_server.sh?rev=1586805&r1=1586804&r2=1586805&view=diff
==============================================================================
--- hive/trunk/hcatalog/bin/hcat_server.sh (original)
+++ hive/trunk/hcatalog/bin/hcat_server.sh Sat Apr 12 01:29:00 2014
@@ -86,8 +86,8 @@ function start_hcat() {
   export HADOOP_HOME=$HADOOP_HOME
   #export HADOOP_OPTS="-Dlog4j.configuration=file://${HCAT_PREFIX}/conf/log4j.properties"
   export HADOOP_OPTS="${HADOOP_OPTS} -server -XX:+UseConcMarkSweepGC -XX:ErrorFile=${HCAT_LOG_DIR}/hcat_err_pid%p.log -Xloggc:${HCAT_LOG_DIR}/hcat_gc.log-`date +'%Y%m%d%H%M'` -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps"
-  export HADOOP_HEAPSIZE=2048 # 8G is better if you have it
-  export METASTORE_PORT=${METASTORE_PORT}
+  export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048} # 8G is better if you have it
+  export METASTORE_PORT=${METASTORE_PORT:-9083}
   nohup ${HIVE_HOME}/bin/hive --service metastore >${HCAT_LOG_DIR}/hcat.out 2>${HCAT_LOG_DIR}/hcat.err &
 
   PID=$!