ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject ambari git commit: AMBARI-12008 NIMBUS / DRPC_SERVER become stopped after few minutes after ambari only upgrade from 1.7.0 to 2.1.0 (additional patch) (dsen)
Date Tue, 23 Jun 2015 19:03:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 4f06c859d -> 1efe77ebb


AMBARI-12008 NIMBUS / DRPC_SERVER become stopped after few minutes after ambari only upgrade
from 1.7.0 to 2.1.0 (additional patch) (dsen)


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

Branch: refs/heads/branch-2.1
Commit: 1efe77ebbde8b2023cca5ec65b1b340dc431c672
Parents: 4f06c85
Author: Dmytro Sen <dsen@apache.org>
Authored: Tue Jun 23 22:01:03 2015 +0300
Committer: Dmytro Sen <dsen@apache.org>
Committed: Tue Jun 23 22:02:46 2015 +0300

----------------------------------------------------------------------
 .../apache/ambari/server/upgrade/UpgradeCatalog210.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1efe77eb/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
index 36a162f..2f8fc50 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
@@ -1288,6 +1288,18 @@ public class UpgradeCatalog210 extends AbstractUpgradeCatalog {
             if (!cluster.getDesiredConfigByType("storm-site").getProperties().containsKey("java.security.auth.login.config"))
{
               newStormProps.put("java.security.auth.login.config", "{{conf_dir}}/storm_jaas.conf");
             }
+            if (!cluster.getDesiredConfigByType("storm-site").getProperties().containsKey("nimbus.admins"))
{
+              newStormProps.put("nimbus.admins", "['{{storm_user}}']");
+            }
+            if (!cluster.getDesiredConfigByType("storm-site").getProperties().containsKey("nimbus.supervisors.users"))
{
+              newStormProps.put("nimbus.supervisors.users", "['{{storm_user}}']");
+            }
+            if (!cluster.getDesiredConfigByType("storm-site").getProperties().containsKey("storm.zookeeper.superACL"))
{
+              newStormProps.put("storm.zookeeper.superACL", "sasl:{{storm_base_jaas_principal}}");
+            }
+            if (!cluster.getDesiredConfigByType("storm-site").getProperties().containsKey("ui.filter.params"))
{
+              newStormProps.put("ui.filter.params", "{'type': 'kerberos', 'kerberos.principal':
'{{storm_ui_jaas_principal}}', 'kerberos.keytab': '{{storm_ui_keytab_path}}', 'kerberos.name.rules':
'DEFAULT'}");
+            }
             updateConfigurationPropertiesForCluster(cluster, "storm-site", newStormProps,
false, true);
           }
         }


Mime
View raw message