Repository: hive Updated Branches: refs/heads/master 5be9c92fb -> c37641840
HIVE-13032: Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization (Prasanth Jayachandran reviewed by Sergey Shelukhin) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c3764184 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c3764184 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c3764184 Branch: refs/heads/master Commit: c37641840521b77f8687fdfde24e4cd52fcdf50f Parents: 5be9c92 Author: Prasanth Jayachandran <[email protected]> Authored: Tue Feb 9 19:53:25 2016 -0600 Committer: Prasanth Jayachandran <[email protected]> Committed: Tue Feb 9 19:53:25 2016 -0600 ---------------------------------------------------------------------- bin/ext/schemaTool.sh | 1 - bin/hive | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/c3764184/bin/ext/schemaTool.sh ---------------------------------------------------------------------- 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 "$@" http://git-wip-us.apache.org/repos/asf/hive/blob/c3764184/bin/hive ---------------------------------------------------------------------- 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"
