[ 
https://issues.apache.org/jira/browse/METRON-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656930#comment-15656930
 ] 

ASF GitHub Bot commented on METRON-564:
---------------------------------------

Github user justinleet commented on the issue:

    https://github.com/apache/incubator-metron/pull/355
  
    Removed duplicate method and moved some storm relevant items into the 'if' 
block so that configs weren't used if they weren't available (i.e. during 
config changes rather than install).
    
    Tested by running up per: 
https://www.evernote.com/shard/s530/sh/c5551fbd-0ac1-4861-89ce-9c5e37065c52/b13e05f39eaac1a6
    
    After installation, I changed the parser list and the error no longer 
appears.  Correct parsers still spun up


> 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)

Reply via email to