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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.5
    • Component/s: ambari-sever
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: