You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ferenc Csaky (Jira)" <ji...@apache.org> on 2024/03/05 14:35:00 UTC

[jira] [Commented] (FLINK-34478) NoSuchMethod error for "flink cancel $jobId" via Command Line

    [ https://issues.apache.org/jira/browse/FLINK-34478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17823647#comment-17823647 ] 

Ferenc Csaky commented on FLINK-34478:
--------------------------------------

Just tried this with the {{TopSpeedWindowing.jar}} streaming example, worked fine for me on an M1 macbook. Are you trying with a custom JAR? On what system?

> NoSuchMethod error for "flink cancel $jobId" via Command Line
> -------------------------------------------------------------
>
>                 Key: FLINK-34478
>                 URL: https://issues.apache.org/jira/browse/FLINK-34478
>             Project: Flink
>          Issue Type: Bug
>          Components: Command Line Client
>    Affects Versions: 1.18.1
>            Reporter: Liu Yi
>            Priority: Major
>
> On 1.18.1 standalone mode (launched by "\{flink}/bin/start-cluster.sh"), I hit " [java.lang.NoSuchMethodError: 'boolean org.apache.commons.cli.CommandLine.hasOption(org.apache.commons.cli.Option)'|https://www.google.com/search?q=java.lang.NoSuchMethodError:+%27boolean+org.apache.commons.cli.CommandLine.hasOption%28org.apache.commons.cli.Option%29%27] " when trying to cancel a job submitted via the UI by executing the Command Line "{*}{flink}/bin/flink cancel _$jobId_{*}". While clicking on "Cancel Job" link in the UI can cancel the job just fine, and "flink run" command line also works fine.
> Has anyone seen same/similar behavior?



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