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

Calling bin/flink stop when flink-shaded-hadoop-2-uber-2.8.3-10.0.jar is in lib directory throws NoSuchMethodError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.17.0, 1.16.1, 1.15.4
    • None
    • Command Line Client
    • None

    Description

      To reproduce this bug, follow these steps:

      1. Download flink-shaded-hadoop-2-uber-2.8.3-10.0.jar and put it in the lib directory.
      2. Run bin/flink stop

      The exception stack is

      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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              TsReaper Caizhi Weng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: