diff --git a/bin/ext/schemaTool.sh b/bin/ext/schemaTool.sh index 473ee90..94c56ef 100644 --- a/bin/ext/schemaTool.sh +++ b/bin/ext/schemaTool.sh @@ -17,7 +17,6 @@ THISSERVICE=schemaTool export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " schemaTool() { - export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Dlog4j.configurationFile=hive-log4j2.properties" HIVE_OPTS='' CLASS=org.apache.hive.beeline.HiveSchemaTool execHiveCmd $CLASS "$@" diff --git a/bin/hive b/bin/hive index 52433ec..434d5db 100755 --- a/bin/hive +++ b/bin/hive @@ -312,6 +312,9 @@ for j in $SERVICE_LIST ; do fi done +# to initialize logging for all services +export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Dlog4j.configurationFile=hive-log4j2.properties " + if [ "$TORUN" = "" ] ; then echo "Service $SERVICE not found" echo "Available Services: $SERVICE_LIST"