You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2016/08/05 23:55:29 UTC
ambari git commit: AMBARI-18044. Storm service check failed during EU
due to empty value of storm.topology.submission.notifier.plugin.class config
Repository: ambari
Updated Branches:
refs/heads/trunk 45c37ce33 -> 46964151f
AMBARI-18044. Storm service check failed during EU due to empty value of storm.topology.submission.notifier.plugin.class config
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/46964151
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/46964151
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/46964151
Branch: refs/heads/trunk
Commit: 46964151f80adb17da92371b81d41f415a464073
Parents: 45c37ce
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Fri Aug 5 16:55:09 2016 -0700
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Fri Aug 5 16:55:09 2016 -0700
----------------------------------------------------------------------
.../HDP/2.3/services/STORM/configuration/storm-site.xml | 2 +-
.../main/resources/stacks/HDP/2.3/services/stack_advisor.py | 7 ++++---
.../src/test/python/stacks/2.3/common/test_stack_advisor.py | 3 +--
3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/46964151/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-site.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-site.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-site.xml
index 62d0fb2..b71f4a9 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-site.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/STORM/configuration/storm-site.xml
@@ -68,6 +68,6 @@
<name>atlas.authentication.method</name>
</property>
</depends-on>
- <on-ambari-upgrade add="true"/>
+ <on-ambari-upgrade add="false"/>
</property>
</configuration>
http://git-wip-us.apache.org/repos/asf/ambari/blob/46964151/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
index 9d75cee..9a099c6 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
@@ -730,10 +730,11 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
application_classes = [item for item in notifier_plugin_value.split(",") if item != atlas_hook_class and item != " "]
notifier_plugin_value = ",".join(application_classes) if application_classes else " "
- if notifier_plugin_value != " " or \
- (not atlas_is_present and atlas_hook_is_set):
-
+ if notifier_plugin_value.strip() != "":
putStormStartupProperty(notifier_plugin_property, notifier_plugin_value)
+ else:
+ putStormStartupPropertyAttribute = self.putPropertyAttribute(configurations, "storm-site")
+ putStormStartupPropertyAttribute(notifier_plugin_property, 'delete', 'true')
def getServiceConfigurationValidators(self):
parentValidators = super(HDP23StackAdvisor, self).getServiceConfigurationValidators()
http://git-wip-us.apache.org/repos/asf/ambari/blob/46964151/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py
index 137fd47..97a29b0 100644
--- a/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py
+++ b/ambari-server/src/test/python/stacks/2.3/common/test_stack_advisor.py
@@ -1778,9 +1778,8 @@ class TestHDP23StackAdvisor(TestCase):
services["services"] = []
services["configurations"]["storm-site"]["properties"]["storm.topology.submission.notifier.plugin.class"] = "org.apache.atlas.storm.hook.StormAtlasHook"
- expected["storm-site"]["properties"]["storm.topology.submission.notifier.plugin.class"] = " "
self.stackAdvisor.recommendStormConfigurations(configurations, clusterData, services, hosts)
- self.assertEquals(configurations, expected)
+ self.assertEquals(True, "storm.topology.submission.notifier.plugin.class" in configurations["storm-site"]["property_attributes"])
def test_recommendSqoopConfigurations(self):
self.maxDiff = None