Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29366

Use flink-shaded-jacson library to parse flink-conf.yaml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.13.3
    • None
    • API / Core
    • None

    Description

      Now we use a simple implementation(org.apache.flink.configuration.GlobalConfiguration#loadYAMLResource) to parse flink-conf.yaml, which can only parse simple key-value pairs.

      Although there have been discussions on this issue historically(see:https://github.com/stratosphere/stratosphere/issues/113)
      but I think that in the actual production environment, we often need to config complex structure into flink-conf.yaml. At this time, the yaml libary is required for parsing, so I suggest to use the yaml library to parse flink-conf.yaml  instead of our own implementation.

      In fact, the flink-core module already has a dependency on flink-shaded-jackson which could parse yaml format,  we can use this jar without more dependencies.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              catyee Yuan Kui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: