You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2014/09/23 18:02:59 UTC

[04/12] git commit: AMBARI-7421. Slider View should support secured cluster - Boolean fix (srimanth)

AMBARI-7421. Slider View should support secured cluster - Boolean fix (srimanth)


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

Branch: refs/heads/branch-alerts-dev
Commit: 6c6bd5f054e291fbed748fb53c2af7a9b2669824
Parents: ffc9532
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Mon Sep 22 13:40:25 2014 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Mon Sep 22 13:46:30 2014 -0700

----------------------------------------------------------------------
 contrib/views/slider/docs/index.md                             | 6 +++---
 .../ambari/view/slider/SliderAppsViewControllerImpl.java       | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6c6bd5f0/contrib/views/slider/docs/index.md
----------------------------------------------------------------------
diff --git a/contrib/views/slider/docs/index.md b/contrib/views/slider/docs/index.md
index 903289d..79229d5 100644
--- a/contrib/views/slider/docs/index.md
+++ b/contrib/views/slider/docs/index.md
@@ -21,7 +21,7 @@ limitations under the License.
 After deploying a HDP cluster through Ambari, it can be secured by using the *Enable Security* button in *Admin > Seurity* page.
 
 #### Step-2: Create *Kerberos* principal for view
-We need to provide a *Kerberos* identity for the process in which the view is run. We shall identify the user as `view-principal`. Since views are generally hosted by Ambari server, typically this can be named as *ambari*.
+We need to provide a *Kerberos* identity for the process in which the view is run. We shall identify the user as `view-principal`. **In this document `view-principal` can be changed to any suitable name.** Since views are generally hosted by Ambari server, typically this can be named as *ambari*.
 
 On the machine where *KDC Server* is hosted, create user principal by running below command
 
@@ -48,8 +48,8 @@ chmod 440 /etc/security/keytabs/view-principal.headless.keytab
 #### Step-3: Configure *proxyuser* for created principal
 Add the following configurations in *Custom core-site* section of *HDFS* service.
 
-* hadoop.proxyuser.ambari.groups = *
-* hadoop.proxyuser.ambari.hosts = `view-server-host`
+* hadoop.proxyuser.`view-principal`.groups = *
+* hadoop.proxyuser.`view-principal`.hosts = `view-server-host`
 
 This will in-turn show up in *core-site.xml* as
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/6c6bd5f0/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
index 93c95a0..f60ac3b 100644
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
+++ b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
@@ -459,7 +459,7 @@ public class SliderAppsViewControllerImpl implements SliderAppsViewController {
     String rmAddress = viewContext.getProperties().get(PROPERTY_YARN_RM_ADDRESS);
     String rmSchedulerAddress = viewContext.getProperties().get(PROPERTY_YARN_RM_SCHEDULER_ADDRESS);
     String zkQuorum = viewContext.getProperties().get(PROPERTY_ZK_QUOROM);
-    boolean securedCluster = Boolean.getBoolean(viewContext.getProperties().get(PROPERTY_SLIDER_SECURITY_ENABLED));
+    boolean securedCluster = Boolean.valueOf(viewContext.getProperties().get(PROPERTY_SLIDER_SECURITY_ENABLED));
 
     HdfsConfiguration hdfsConfig = new HdfsConfiguration();
     YarnConfiguration yarnConfig = new YarnConfiguration(hdfsConfig);