hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ct...@apache.org
Subject hive git commit: HIVE-14359: Hive on Spark might fail in HS2 with LDAP authentication in a kerberized cluster (Chaoyu Tang, reviewed by Xuefu Zhang)
Date Fri, 29 Jul 2016 13:15:59 GMT
Repository: hive
Updated Branches:
  refs/heads/master b7543e120 -> ce154012f


HIVE-14359: Hive on Spark might fail in HS2 with LDAP authentication in a kerberized cluster
(Chaoyu Tang, reviewed by Xuefu Zhang)


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

Branch: refs/heads/master
Commit: ce154012fc9294077445c3baeaeec8ff88125bf4
Parents: b7543e1
Author: ctang <ctang@cloudera.com>
Authored: Fri Jul 29 09:15:52 2016 -0400
Committer: ctang <ctang@cloudera.com>
Committed: Fri Jul 29 09:15:52 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/hive/spark/client/SparkClientImpl.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/ce154012/spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java
----------------------------------------------------------------------
diff --git a/spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java
b/spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java
index dfe263f..59a31c2 100644
--- a/spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java
+++ b/spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java
@@ -17,6 +17,8 @@
 
 package org.apache.hive.spark.client;
 
+import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION;
+
 import com.google.common.base.Charsets;
 import com.google.common.base.Joiner;
 import com.google.common.base.Strings;
@@ -326,7 +328,7 @@ class SparkClientImpl implements SparkClient {
 
       List<String> argv = Lists.newArrayList();
 
-      if (hiveConf.getVar(HiveConf.ConfVars.HIVE_SERVER2_AUTHENTICATION).equalsIgnoreCase("kerberos"))
{
+      if ("kerberos".equalsIgnoreCase(hiveConf.get(HADOOP_SECURITY_AUTHENTICATION))) {
           argv.add("kinit");
           String principal = SecurityUtil.getServerPrincipal(hiveConf.getVar(ConfVars.HIVE_SERVER2_KERBEROS_PRINCIPAL),
               "0.0.0.0");


Mime
View raw message