You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Danny Cranmer (Jira)" <ji...@apache.org> on 2022/05/24 12:33:00 UTC

[jira] [Resolved] (FLINK-27754) Getting Flink config fails if multiple files in /lib match flink-dist-*

     [ https://issues.apache.org/jira/browse/FLINK-27754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Cranmer resolved FLINK-27754.
-----------------------------------
    Resolution: Fixed

> Getting Flink config fails if multiple files in /lib match flink-dist-*
> -----------------------------------------------------------------------
>
>                 Key: FLINK-27754
>                 URL: https://issues.apache.org/jira/browse/FLINK-27754
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Rudi Kershaw
>            Assignee: Rudi Kershaw
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.16.0
>
>
> h3. 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.
> h3. 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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)