Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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
- ./mvnw clean install -DskipTests -Dfast
- cp flink-dist-scala/target/flink-dist-scala_2.12-1.16-SNAPSHOT.jar build-target/lib/
- build-target/bin/start-cluster.sh
- You should a vague error message "NoClassDefinition" or similar.
Attachments
Issue Links
- links to