You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2015/05/05 02:28:56 UTC

hive git commit: HIVE-10544 : Beeline/Hive JDBC Driver fails in HTTP mode on Windows with java.lang.NoSuchFieldError: INSTANCE (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

Repository: hive
Updated Branches:
  refs/heads/branch-1.2 9e5b64127 -> 6135f0a20


HIVE-10544 : Beeline/Hive JDBC Driver fails in HTTP mode on Windows with java.lang.NoSuchFieldError: INSTANCE (Hari Sankar Sivarama Subramaniyan via Thejas Nair)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/6135f0a2
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/6135f0a2
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/6135f0a2

Branch: refs/heads/branch-1.2
Commit: 6135f0a20d59a64a4da4604401aa6d25ea5a7500
Parents: 9e5b641
Author: Thejas Nair <th...@hortonworks.com>
Authored: Mon May 4 17:28:46 2015 -0700
Committer: Thejas Nair <th...@hortonworks.com>
Committed: Mon May 4 17:28:46 2015 -0700

----------------------------------------------------------------------
 bin/beeline.cmd | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/6135f0a2/bin/beeline.cmd
----------------------------------------------------------------------
diff --git a/bin/beeline.cmd b/bin/beeline.cmd
index 8687444..971e20b 100644
--- a/bin/beeline.cmd
+++ b/bin/beeline.cmd
@@ -42,23 +42,24 @@ if not exist %HADOOP_HOME%\libexec\hadoop-config.cmd (
 )
 @rem supress the HADOOP_HOME warnings in 1.x.x
 set HADOOP_HOME_WARN_SUPPRESS=true
-call %HADOOP_HOME%\libexec\hadoop-config.cmd
 
 @rem include only the beeline client jar and its dependencies
 pushd %HIVE_HOME%\lib
 for /f %%a IN ('dir /b hive-beeline-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b super-csv-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b jline-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b hive-jdbc-**-standalone.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 popd
+set HADOOP_USER_CLASSPATH_FIRST=true
+call %HADOOP_HOME%\libexec\hadoop-config.cmd
 
 call %JAVA_HOME%\bin\java %JAVA_HEAP_MAX% %HADOOP_OPTS% -classpath %CLASSPATH% org.apache.hive.beeline.BeeLine %*