[
https://issues.apache.org/jira/browse/METRON-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655158#comment-15655158
]
Justin Leet commented on METRON-564:
------------------------------------
This does not appear to prevent config changes from actually happening.
> Mpack shows UI error when changing configuration
> ------------------------------------------------
>
> Key: METRON-564
> URL: https://issues.apache.org/jira/browse/METRON-564
> Project: Metron
> Issue Type: Bug
> Affects Versions: 0.2.1BETA
> Reporter: Justin Leet
> Assignee: Justin Leet
>
> When confirming configuration changes, the Ambari UI shows an error that it
> cannot validate configuration consistency.
> An error in the logs refers to the service advisor
> (getServiceConfigurationRecommendations), in particular a method that
> actually appears twice in the file, which is probably the root cause. This
> first instance of this method should be removed, and the error fixed.
> {code}
> Traceback (most recent call last):
> File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 158,
> in <module>
> main(sys.argv)
> File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 115,
> in main
> result = stackAdvisor.validateConfigurations(services, hosts)
> File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py",
> line 536, in validateConfigurations
> validationItems = self.getConfigurationsValidationItems(services, hosts)
> File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py",
> line 612, in getConfigurationsValidationItems
> recommendations = self.recommendConfigurations(services, hosts)
> File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py",
> line 766, in recommendConfigurations
> serviceAdvisor.getServiceConfigurationRecommendations(configurations,
> clusterSummary, services, hosts)
> File
> "/var/lib/ambari-server/resources/common-services/METRON/0.3.0/service_advisor.py",
> line 103, in getServiceConfigurationRecommendations
> stormUIServerPort =
> services["configurations"]["storm-site"]["properties"]["ui.port"]
> KeyError: 'storm-site'
> 10 Nov 2016 15:29:58,186 WARN [ambari-client-thread-28]
> AbstractResourceProvider:90 - Error occurred during validation
> org.apache.ambari.server.api.services.stackadvisor.StackAdvisorException:
> Stack Advisor reported an error: KeyError: 'storm-site'
> StdOut file: /var/run/ambari-server/stack-recommendations/18/stackadvisor.out
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)