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

YAML Maps For Storm Are Not Being Escaped Correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.4.2
    • ambari-agent
    • None

    Description

      When attempting to add a custom storm-site property which is a YAML map of maps, the storm.yaml file being generated is incorrectly escaping the map.

      "Expected YAML"
      nimbus.impersonation.acl:
      storm:
        hosts:
          [c6401.ambari.apache.org, c6402.ambari.apache.org]
        groups:
          [hadoop, foo]
      
      "Actual YAML"
      nimbus.impersonation.acl: 'storm:
        hosts:
          [c6401.ambari.apache.org, c6402.ambari.apache.org]
        groups:
          [hadoop, foo]'
      
      • We should not be escaping YAML maps
      • YAML maps must being on a newline with no leading whitespace

      Attachments

        1. AMBARI-18366.patch
          4 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: