Repository: hive Updated Branches: refs/heads/branch-2.0 ecccdda84 -> 7f9f1fcb8
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/7f9f1fcb Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7f9f1fcb Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7f9f1fcb Branch: refs/heads/branch-2.0 Commit: 7f9f1fcb8697fb33f0edc2c391930a3728d247d7 Parents: ecccdda Author: Prasanth Jayachandran <[email protected]> Authored: Tue Feb 9 19:53:25 2016 -0600 Committer: Prasanth Jayachandran <[email protected]> Committed: Tue Feb 9 19:55:29 2016 -0600 ---------------------------------------------------------------------- RELEASE_NOTES.txt | 1 + bin/ext/schemaTool.sh | 1 - bin/hive | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/7f9f1fcb/RELEASE_NOTES.txt ---------------------------------------------------------------------- diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt index f9388c1..2e56113 100644 --- a/RELEASE_NOTES.txt +++ b/RELEASE_NOTES.txt @@ -818,6 +818,7 @@ Release Notes - Hive - Version 2.0.0 * [HIVE-12964] - TestOperationLoggingAPIWithMr,TestOperationLoggingAPIWithTez fail on branch-2.0 (with Java 7, at least) * [HIVE-12985] - distribution configs are wrong and out of date * [HIVE-13024] - schematool does not log anywhere + * [HIVE-13032] - Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization http://git-wip-us.apache.org/repos/asf/hive/blob/7f9f1fcb/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/7f9f1fcb/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"
