You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/12/10 21:57:11 UTC

[jira] [Commented] (AMBARI-14278) On a cluster with both AMS and Storm, stack advisor throws error in validateStormConfigurations after upgrade if the metrics.reporter.register property is not present.

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

Hudson commented on AMBARI-14278:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.2 #54 (See [https://builds.apache.org/job/Ambari-branch-2.2/54/])
AMBARI-14278 : On a cluster with both AMS and Storm, stack advisor (swagle: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1f631152dc82d8abfaed704e6731fb655a45456c])
* ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java
* ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java
* ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py


> On a cluster with both AMS and Storm, stack advisor throws error in validateStormConfigurations after upgrade if the metrics.reporter.register property is not present.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-14278
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14278
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-metrics
>    Affects Versions: 2.1.2
>            Reporter: Aravindan Vijayan
>            Assignee: Aravindan Vijayan
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-14278.patch
>
>
> Error trace
> {code}
> Error occured in stack advisor.
> Error details: argument of type 'NoneType' is not iterable
> 08 Dec 2015 02:46:51,713  INFO [qtp-ambari-client-23] StackAdvisorRunner:71 -     advisor script stderr: 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 463, in validateConfigurations
>     validationItems = self.getConfigurationsValidationItems(services, hosts)
>   File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py", line 754, in getConfigurationsValidationItems
>     resultItems = method(siteProperties, siteRecommendations, configurations, services, hosts)
>   File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py", line 912, in validateStormConfigurations
>     "org.apache.hadoop.metrics2.sink.storm.StormTimelineMetricsReporter" not in properties.get("metrics.reporter.register"):
> TypeError: argument of type 'NoneType' is not iterable
> 08 Dec 2015 02:46:51,713  WARN [qtp-ambari-client-23] AbstractResourceProvider:90 - Error occurred during validation
> org.apache.ambari.server.api.services.stackadvisor.StackAdvisorException: Stack Advisor reported an error: TypeError: argument of type 'NoneType' is not iterable
> StdOut file: /var/run/ambari-server/stack-recommendations/61/stackadvisor.out
> {code}
> Fix
> Added a check for the presence of the property.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)