hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasan...@apache.org
Subject hive git commit: HIVE-13032: Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization (Prasanth Jayachandran reviewed by Sergey Shelukhin)
Date Wed, 10 Feb 2016 01:53:36 GMT
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 <j.prasanth.j@gmail.com>
Authored: Tue Feb 9 19:53:25 2016 -0600
Committer: Prasanth Jayachandran <j.prasanth.j@gmail.com>
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"


Mime
View raw message