ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [43/50] [abbrv] ambari git commit: AMBARI-19595. HiveView2.0 not loading in secure environment. (dipayanb)
Date Wed, 18 Jan 2017 15:58:16 GMT
AMBARI-19595. HiveView2.0 not loading in secure environment. (dipayanb)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 15233860e631e8db568e797b3d894c0da465bf72
Parents: bc77c9c
Author: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Authored: Wed Jan 18 13:03:36 2017 +0530
Committer: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Committed: Wed Jan 18 13:04:19 2017 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/ambari/view/hive20/AuthParams.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/15233860/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/AuthParams.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/AuthParams.java
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/AuthParams.java
index 98e6caf..60df377 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/AuthParams.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/AuthParams.java
@@ -68,6 +68,8 @@ public class AuthParams {
   public UserGroupInformation getProxyUser() throws IOException {
     UserGroupInformation ugi;
     String proxyuser = null;
+
+    UserGroupInformation.isSecurityEnabled();
     if(context.getCluster() != null) {
       proxyuser = context.getCluster().getConfigurationValue("cluster-env","ambari_principal_name");
     }


Mime
View raw message