Aviv Dozorets
01/26/2023, 4:07 PM-s <s3://bucket-name/checkpoints/000000/chk-20/> or location to the manually created savepoint, i’m getting:
Exception in thread "main" java.lang.NoSuchMethodError: 'boolean org.apache.commons.cli.CommandLine.hasOption(org.apache.commons.cli.Option)'
at org.apache.flink.client.cli.CliFrontendParser.createSavepointRestoreSettings(CliFrontendParser.java:631)
at org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfigurationParserFactory.createResult(StandaloneApplicationClusterConfigurationParserFactory.java:90)
at org.apache.flink.container.entrypoint.StandaloneApplicationClusterConfigurationParserFactory.createResult(StandaloneApplicationClusterConfigurationParserFactory.java:45)
at org.apache.flink.runtime.entrypoint.parser.CommandLineParser.parse(CommandLineParser.java:51)
at org.apache.flink.runtime.entrypoint.ClusterEntrypointUtils.parseParametersOrExit(ClusterEntrypointUtils.java:70)
at org.apache.flink.container.entrypoint.StandaloneApplicationClusterEntryPoint.main(StandaloneApplicationClusterEntryPoint.java:58)
I’ve been all over documentation and feel like i’m missing something. Any help would be appreciated.Aviv Dozorets
01/26/2023, 4:20 PMNo checkpoint found during restore. Looked at the code, looks like it didn’t find any checkpoints, although there are at s3.sap1ens
01/26/2023, 5:33 PMorg.apache.commons.cli.CommandLine dependency.sap1ens
01/26/2023, 5:34 PMAviv Dozorets
01/26/2023, 10:15 PM--help the response was:
usage: StandaloneApplicationClusterEntryPoint -c <configuration directory> [-D
<property=value>] [-h <hostname>] [-j <job class name>] [-jid <job id>]
[-n] [-r <rest port>] [-s <savepointPath>]
-c,--configDir <configuration directory> Directory which contains the
configuration file
flink-conf.yml.
-D <property=value> use value for given property
-h,--host <hostname> Hostname for the RPC service.
-j,--job-classname <job class name> Class name of the job to run.
-jid,--job-id <job id> Job ID of the job to run.
-n,--allowNonRestoredState Allow to skip savepoint state
that cannot be restored. You
need to allow this if you
removed an operator from your
program that was part of the
program when the savepoint was
triggered.
-r,--webui-port <rest port> Port for the rest endpoint and
the web UI.
-s,--fromSavepoint <savepointPath> Path to a savepoint to restore
the job from (for example
hdfs:///flink/savepoint-1537).Aviv Dozorets
01/26/2023, 10:16 PMorg.apache.commons.cli.CommandLine from flink, it’s not like i’m importing in my part of code or etc.sap1ens
01/26/2023, 10:40 PM/opt/flink/lib for example, one of your transitive dependencies might affect flink’s classpath as wellAviv Dozorets
01/26/2023, 10:59 PMAviv Dozorets
01/26/2023, 10:59 PMAviv Dozorets
01/26/2023, 11:00 PMRon Ben Arosh
03/29/2023, 8:15 AM<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.5.0</version>
</dependency>
to our pom and it solved the issue.
(Just in case someone in following this thread)