Caizhi Weng created 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
                 Key: FLINK-31695
                 URL: https://issues.apache.org/jira/browse/FLINK-31695
             Project: Flink
          Issue Type: Bug
          Components: Command Line Client
    Affects Versions: 1.15.4, 1.16.1, 1.17.0
            Reporter: Caizhi Weng


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)

Reply via email to