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

Dynamic property parsing broken for YARN

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.4.0
    • Fix Version/s: 1.2.2, 1.3.0, 1.4.0
    • Component/s: YARN
    • Labels:
      None

      Description

      The dynamic property parsing in YARN is broken. For example, the following dynamic property won't be parsed properly: -yDenv.java.opts="-DappName=foobar -Did=1". The result will be equivalent to -yDenv.java.opts="-DappName".

      The problem is that FlinkYarnSessionCli#getDynamicProperties assumes that all dynamic properties have the form -D<KEY>=<VALUE> where <VALUE> does not contain any =.

      I propose to change the parsing of the dynamic properties string such that it splits the key-value pair not via dynamicProperties.split("=") but that we split the dynamic properties string at the first occurrence of the =.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                till.rohrmann Till Rohrmann
                Reporter:
                till.rohrmann Till Rohrmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: