Jonathan Hurley created AMBARI-18366:
----------------------------------------

             Summary: YAML Maps For Storm Are Not Being Escaped Correctly
                 Key: AMBARI-18366
                 URL: https://issues.apache.org/jira/browse/AMBARI-18366
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.5.0


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. 

{code:title="Expected YAML"}
nimbus.impersonation.acl:
storm:
  hosts:
    [c6401.ambari.apache.org, c6402.ambari.apache.org]
  groups:
    [hadoop, foo]
{code}

{code:title="Actual YAML"}
nimbus.impersonation.acl: 'storm:
  hosts:
    [c6401.ambari.apache.org, c6402.ambari.apache.org]
  groups:
    [hadoop, foo]'
{code}

- We should not be escaping YAML maps
- YAML maps must being on a newline with no leading whitespace



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

Reply via email to