You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Caizhi Weng (Jira)" <ji...@apache.org> on 2023/04/03 09:08:00 UTC

[jira] [Updated] (FLINK-31695) Calling bin/flink stop when flink-shaded-hadoop-2-uber-2.8.3-10.0.jar is in lib directory thwos NoSuchMethodError

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

Caizhi Weng updated FLINK-31695:
--------------------------------
    Summary: Calling bin/flink stop when flink-shaded-hadoop-2-uber-2.8.3-10.0.jar is in lib directory thwos NoSuchMethodError  (was: Calling `bin/flink stop` when flink-shaded-hadoop-2-uber-2.8.3-10.0.jar is in lib directory thwos NoSuchMethodError)

> Calling bin/flink stop when flink-shaded-hadoop-2-uber-2.8.3-10.0.jar is in lib directory thwos NoSuchMethodError
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-31695
>                 URL: https://issues.apache.org/jira/browse/FLINK-31695
>             Project: Flink
>          Issue Type: Bug
>          Components: Command Line Client
>    Affects Versions: 1.17.0, 1.16.1, 1.15.4
>            Reporter: Caizhi Weng
>            Priority: Major
>
> To reproduce this bug, follow these steps:
> 1. Download [flink-shaded-hadoop-2-uber-2.8.3-10.0.jar|https://mvnrepository.com/artifact/org.apache.flink/flink-shaded-hadoop-2-uber/2.8.3-10.0] and put it in the {{lib}} directory.
> 2. Run {{bin/flink stop}}
> The exception stack is
> {code}
> java.lang.NoSuchMethodError: org.apache.commons.cli.CommandLine.hasOption(Lorg/apache/commons/cli/Option;)Z
> 	at org.apache.flink.client.cli.StopOptions.<init>(StopOptions.java:53)
> 	at org.apache.flink.client.cli.CliFrontend.stop(CliFrontend.java:539)
> 	at org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1102)
> 	at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:1165)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:422)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1836)
> 	at org.apache.flink.runtime.security.contexts.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
> 	at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1165)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)