You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/10/16 00:09:02 UTC
svn commit: r1632190 -
/hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh
Author: thejas
Date: Wed Oct 15 22:09:02 2014
New Revision: 1632190
URL: http://svn.apache.org/r1632190
Log:
HIVE-8449 : webhcat startup does not create the log directory (Na Yang via Thejas Nair)
Modified:
hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh
Modified: hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh?rev=1632190&r1=1632189&r2=1632190&view=diff
==============================================================================
--- hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh (original)
+++ hive/trunk/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh Wed Oct 15 22:09:02 2014
@@ -138,6 +138,9 @@ function start_webhcat() {
log "starting ..."
log "$start_cmd"
+ if [ ! -d ${WEBHCAT_LOG_DIR} ]; then
+ mkdir ${WEBHCAT_LOG_DIR}
+ fi
nohup $start_cmd >>$CONSOLE_LOG 2>>$ERROR_LOG &
local pid=$!