You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2016/07/09 00:58:11 UTC

[jira] [Commented] (FLUME-2853) Allow for YAML configuration files

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

Mike Percy commented on FLUME-2853:
-----------------------------------

Lior, if you want to work on this, I would be willing to review it. But we should be careful that we get a significant benefit from this, since it increases the support surface area.

> Allow for YAML configuration files
> ----------------------------------
>
>                 Key: FLUME-2853
>                 URL: https://issues.apache.org/jira/browse/FLUME-2853
>             Project: Flume
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: v1.8.0
>            Reporter: Christopher White
>            Priority: Minor
>             Fix For: v1.8.0
>
>
> Allow for YAML formatted configuration files (http://www.yaml.org/spec/1.2/spec.html).
> This provides:
> * A more condensed format than properties files
> * Less 'typo' prone for repetitive common prefixes
> * Ability to define a value once and reuse via references (see [spec - Structures - Example 2.10|http://www.yaml.org/spec/1.2/spec.html#id2760395]
> For example compare the following properties file and potential YAML equivalent:
> {code:title=agent.properties}
> host1.sources = source1
> host1.channels = channel1
> host1.sinks = sink1
> host1.sources.source1.type = seq
> host1.sources.source1.channels = channel1
> host1.channels.channel1.type = memory
> host1.channels.channel1.capacity = 10000
> host1.sinks.sink1.type = null
> host1.sinks.sink1.channel = channel1
> {code}
> {code:title=agent.yaml}
> host1:
>   sources:
>     _: source1
>     source1:
>       type: seq
>       channels: channel1
>       
>   channels:
>     _: channel1
>     channel1:
>       type: memory
>       capacity: 10000
>       
>   sinks:
>     _: sink1
>     sink1:
>       type: null
>       channel: channel1
> {code}



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