diff --git a/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh b/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh index f0ce3a3..0be8dde 100644 --- a/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh +++ b/hcatalog/webhcat/svr/src/main/bin/webhcat_server.sh @@ -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=$!