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

Getting Flink config fails if multiple files in /lib match flink-dist-*

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • None

    Description

      Background

      When adding jars to the /lib directory any extra jar files that match the pattern flink-dist*.jar provoke an error when trying to use BashJavaUtils to get JVM parameters and dynamic configurations in config.sh. Although niche, this can be difficult to debug because there is no error message to describe the specific issue.

      We already print a useful error message if no flink-dist*.jar can be found at all. This pull request adds another error message when more than one flink-dist*.jar is found at this point.

      Reproduction Steps

      1. ./mvnw clean install -DskipTests -Dfast
      2. cp flink-dist-scala/target/flink-dist-scala_2.12-1.16-SNAPSHOT.jar build-target/lib/
      3. build-target/bin/start-cluster.sh
      4. You should a vague error message "NoClassDefinition" or similar.

      Attachments

        Issue Links

          Activity

            People

              rudi.kershaw Rudi Kershaw
              rudi.kershaw Rudi Kershaw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: