Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2853

Allow for YAML configuration files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:

      Description

      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

      For example compare the following properties file and potential YAML equivalent:

      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
      
      agent.yaml
      host1:
        sources:
          _: source1
          source1:
            type: seq
            channels: channel1
            
        channels:
          _: channel1
          channel1:
            type: memory
            capacity: 10000
            
        sinks:
          _: sink1
          sink1:
            type: null
            channel: channel1
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chriswhite199 Christopher White
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: