Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25378

500 advisor error with ambari metrics mode set to distributed with OneFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.7.5
    • ambari-sever
    • None

    Description

      OneFS with Ambari Metrics when set to distributed mode creates a 500 stack advisor error when trying to configure any settings in ambari or add or remove services. This error only goes away after configuring Ambari Metrics back to embedded mode.

      Traceback is:
      /var/run/ambari-server/stack-recommendations/2/stackadvisor.err
       
      Traceback (most recent call last):
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 190, in <module>
          main(sys.argv)
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 142, in main
          result = stackAdvisor.validateConfigurations(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1079, in validateConfigurations
          validationItems = self.getConfigurationsValidationItems(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1468, in getConfigurationsValidationItems
          items.extend(self.getConfigurationsValidationItemsForService(configurations, recommendedDefaults, service, services, hosts))
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1521, in getConfigurationsValidationItemsForService
          items.extend(serviceAdvisor.getServiceConfigurationsValidationItems(configurations, recommendedDefaults, services, hosts))
        File "/var/lib/ambari-server/resources/stacks/HDP/3.0/services/AMBARI_METRICS/service_advisor.py", line 218, in
      getServiceConfigurationsValidationItems
          return validator.validateListOfConfigUsingMethod(configurations, recommendedDefaults, services, hosts, validator.validators)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 1491, in validateListOfConfigUsingMethod
          validationItems = method(siteProperties, siteRecommendations, configurations, services, hosts)
        File "/var/lib/ambari-server/resources/stacks/HDP/3.0/services/AMBARI_METRICS/service_advisor.py", line 591, in
      validateAmsHbaseSiteConfigurationsFromHDP206
          elif collectorHostName not in dn_hosts and distributed.lower() == "true":
      TypeError: argument of type 'NoneType' is not iterable

      Attachments

        1. AMBARI-25378.patch
          1 kB
          Attila Magyar

        Activity

          People

            amagyar Attila Magyar
            kaitj91 Kaitlyn Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: