ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18366) YAML Maps For Storm Are Not Being Escaped Correctly
Date Tue, 13 Sep 2016 16:26:20 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-18366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15487656#comment-15487656
] 

Hudson commented on AMBARI-18366:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #5659 (See [https://builds.apache.org/job/Ambari-trunk-Commit/5659/])
AMBARI-18366 - YAML Maps For Storm Are Not Being Escaped Correctly (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2181d73c4a2dadd198597e03215ea5fc14151d13])
* (edit) ambari-server/src/test/python/TestYAMLUtils.py
* (edit) ambari-common/src/main/python/ambari_commons/yaml_utils.py


> 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
>
>         Attachments: AMBARI-18366.patch
>
>
> 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)

Mime
View raw message