ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aravindan Vijayan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (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.
Date Wed, 09 Dec 2015 00:40:10 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-14278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aravindan Vijayan updated AMBARI-14278:
---------------------------------------
    Description: 
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.

  was:
Fix
Added a check for the presence of the property.


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

Mime
View raw message