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

flink-dist/src/main/flink-bin/bin/flink does not expand variable for FLINK_ENV_JAVA_OPTS

    XMLWordPrintableJSON

Details

    Description

      According to the suggestion on https://nightlies.apache.org/flink/flink-docs-master/docs/ops/debugging/application_profiling/ or https://nightlies.apache.org/flink/flink-docs-release-1.12/ops/debugging/application_profiling.html 

      after adding

      env.java.opts: "-Xloggc:${FLINK_LOG_PREFIX}.gc.log <...omitted chars...>"
      

      to flink-conf.yaml.

      flink CLI `./bin/flink run <omitted opts>` fails with

      Invalid file name for use with -Xloggc: Filename can only contain the characters [A-Z][a-z][0-9]-_.%[p|t] but it has been ${FLINK_LOG_PREFIX}.gc.log Note %p or %t can only be used once Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

      Attachments

        Activity

          People

            Unassigned Unassigned
            LzAtApache L Z
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: