diff --git a/hcatalog/bin/hcat_server.sh b/hcatalog/bin/hcat_server.sh index 2d9f7ce..6b09d3e 100644 --- a/hcatalog/bin/hcat_server.sh +++ b/hcatalog/bin/hcat_server.sh @@ -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=$!