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

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

GitHub user justinleet opened a pull request:

    https://github.com/apache/incubator-metron/pull/355

    METRON-564: Mpack shows UI error when changing configuration

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/justinleet/incubator-metron METRON-564

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/355.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #355
    
----
commit 87345434d1ff48fdfd89df76bc1bc040d8a1bb65
Author: justinjleet <[email protected]>
Date:   2016-11-11T12:09:49Z

    METRON-564: Mpack shows UI error when changing configuration

----


> 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