You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pr...@apache.org on 2015/12/23 22:09:19 UTC
hive git commit: HIVE-12739: Log4j2.x needs
HADOOP_USER_CLASSPATH_FIRST to be set (Prasanth Jayachandran reviewed by
Sergey Shelukhin)
Repository: hive
Updated Branches:
refs/heads/master 0cbf45cfc -> f677bffa9
HIVE-12739: Log4j2.x needs HADOOP_USER_CLASSPATH_FIRST to be set (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/f677bffa
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f677bffa
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f677bffa
Branch: refs/heads/master
Commit: f677bffa953b93c0c8c9ae8e7e9d9f83540c0948
Parents: 0cbf45c
Author: Prasanth Jayachandran <j....@gmail.com>
Authored: Wed Dec 23 15:09:05 2015 -0600
Committer: Prasanth Jayachandran <j....@gmail.com>
Committed: Wed Dec 23 15:09:05 2015 -0600
----------------------------------------------------------------------
bin/hive | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/f677bffa/bin/hive
----------------------------------------------------------------------
diff --git a/bin/hive b/bin/hive
index 4818667..52433ec 100755
--- a/bin/hive
+++ b/bin/hive
@@ -171,6 +171,9 @@ fi
# supress the HADOOP_HOME warnings in 1.x.x
export HADOOP_HOME_WARN_SUPPRESS=true
+# to make sure log4j2.x and jline jars are loaded ahead of the jars pulled by hadoop
+export HADOOP_USER_CLASSPATH_FIRST=true
+
# pass classpath to hadoop
if [ "$HADOOP_CLASSPATH" != "" ]; then
export HADOOP_CLASSPATH="${CLASSPATH}:${HADOOP_CLASSPATH}"