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 2017/05/31 14:37:18 UTC
[04/17] ambari git commit: AMBARI-21118. HDP + HDF cluster cannot
save configs for Storm when Streamline is installed due to missing configs
(alejandro)
AMBARI-21118. HDP + HDF cluster cannot save configs for Storm when Streamline is installed due to missing configs (alejandro)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f7c04148
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f7c04148
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f7c04148
Branch: refs/heads/branch-feature-AMBARI-12556
Commit: f7c04148c1214277cf39479d9a0306850c034ef9
Parents: a4482bb
Author: Alejandro Fernandez <af...@hortonworks.com>
Authored: Thu May 25 17:24:05 2017 -0700
Committer: Alejandro Fernandez <af...@hortonworks.com>
Committed: Thu May 25 17:24:05 2017 -0700
----------------------------------------------------------------------
.../STORM/1.1.0/configuration/storm-site.xml | 36 +++++++++++---------
.../stacks/HDP/2.6/services/STORM/metainfo.xml | 6 +++-
2 files changed, 25 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/f7c04148/ambari-server/src/main/resources/common-services/STORM/1.1.0/configuration/storm-site.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/STORM/1.1.0/configuration/storm-site.xml b/ambari-server/src/main/resources/common-services/STORM/1.1.0/configuration/storm-site.xml
index 1a5dde9..b2e9acb 100644
--- a/ambari-server/src/main/resources/common-services/STORM/1.1.0/configuration/storm-site.xml
+++ b/ambari-server/src/main/resources/common-services/STORM/1.1.0/configuration/storm-site.xml
@@ -21,24 +21,28 @@
-->
<configuration supports_final="true">
<property>
- <name>nimbus.autocredential.plugins.classes</name>
+ <name>nimbus.impersonation.acl</name>
<description>
- Allows users to add token based authentication for services such as HDFS, HBase, Hive
- </description>
- <on-ambari-upgrade add="false"/>
- </property>
- <property>
- <name>nimbus.credential.renewers.freq.secs</name>
- <description>
- Frequency at which tokens will be renewed.
- </description>
- <on-ambari-upgrade add="false"/>
- </property>
- <property>
- <name>nimbus.credential.renewers.classes</name>
- <description>
- List of classes for token renewal
+ The ImpersonationAuthorizer uses nimbus.impersonation.acl as the acl to authorize users. Following is a sample nimbus config for supporting impersonation:
+ nimbus.impersonation.acl:
+ impersonating_user1:
+ hosts:
+ [comma separated list of hosts from which impersonating_user1 is allowed to impersonate other users]
+ groups:
+ [comma separated list of groups whose users impersonating_user1 is allowed to impersonate]
+ impersonating_user2:
+ hosts:
+ [comma separated list of hosts from which impersonating_user2 is allowed to impersonate other users]
+ groups:
+ [comma separated list of groups whose users impersonating_user2 is allowed to impersonate]
</description>
+ <!-- The depends-on section is new in this version, required so Stack Advisor can include streamline-env and streamline-common configs. -->
+ <depends-on>
+ <property>
+ <type>streamline-env</type>
+ <name>streamline_principal_name</name>
+ </property>
+ </depends-on>
<on-ambari-upgrade add="false"/>
</property>
</configuration>
http://git-wip-us.apache.org/repos/asf/ambari/blob/f7c04148/ambari-server/src/main/resources/stacks/HDP/2.6/services/STORM/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.6/services/STORM/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.6/services/STORM/metainfo.xml
index 49e00f7..747d951 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.6/services/STORM/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.6/services/STORM/metainfo.xml
@@ -23,9 +23,13 @@
<name>STORM</name>
<version>1.1.0</version>
<extends>common-services/STORM/1.1.0</extends>
+
<configuration-dependencies>
- <config-type>application-properties</config-type>
+ <!-- From Streamline. -->
+ <config-type>streamline-env</config-type>
+ <config-type>streamline-common</config-type>
</configuration-dependencies>
+
</service>
</services>
</metainfo>