Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改FlinkDeployment的jarURI地址错误的问题 #3835

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liuxuzxx
Copy link

@liuxuzxx liuxuzxx commented Jan 6, 2025

因为在Dockerfile的最后一句命令:

RUN mv $FLINK_HOME/flink-cdc-3.3-SNAPSHOT/lib/flink-cdc-dist-3.3-SNAPSHOT.jar $FLINK_HOME/lib/

已经把flink-cdc.xxx.jar移动到了$FLINK_HOME/lib下面了,所以,如果按照这个流程操作下去,就会出现如下的错误信息: Caused by: java.io.IOException: JAR file does not exist '/opt/flink/flink-cdc-3.2.1/lib/flink-cdc-dist-3.2.1.jar'
at org.apache.flink.util.JarUtils.checkJarFile(JarUtils.java:46) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.PackagedProgram.checkJarFile(PackagedProgram.java:615) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.PackagedProgram.loadJarFile(PackagedProgram.java:465) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.PackagedProgram.(PackagedProgram.java:135) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.PackagedProgram.(PackagedProgram.java:65) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.PackagedProgram$Builder.build(PackagedProgram.java:691) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.client.program.DefaultPackagedProgramRetriever.getPackagedProgram(DefaultPackagedProgramRetriever.java:213) ~[flink-dist-1.18.0.jar:1.18.0]
... 2 more

因为在Dockerfile的最后一句命令:

RUN mv $FLINK_HOME/flink-cdc-3.3-SNAPSHOT/lib/flink-cdc-dist-3.3-SNAPSHOT.jar $FLINK_HOME/lib/

已经把flink-cdc.xxx.jar移动到了$FLINK_HOME/lib下面了,所以,如果按照这个流程操作下去,就会出现如下的错误信息:
Caused by: java.io.IOException: JAR file does not exist '/opt/flink/flink-cdc-3.2.1/lib/flink-cdc-dist-3.2.1.jar'
        at org.apache.flink.util.JarUtils.checkJarFile(JarUtils.java:46) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.PackagedProgram.checkJarFile(PackagedProgram.java:615) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.PackagedProgram.loadJarFile(PackagedProgram.java:465) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:135) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:65) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.PackagedProgram$Builder.build(PackagedProgram.java:691) ~[flink-dist-1.18.0.jar:1.18.0]
        at org.apache.flink.client.program.DefaultPackagedProgramRetriever.getPackagedProgram(DefaultPackagedProgramRetriever.java:213) ~[flink-dist-1.18.0.jar:1.18.0]
        ... 2 more
@github-actions github-actions bot added the docs Improvements or additions to documentation label Jan 6, 2025
@liuxuzxx
Copy link
Author

liuxuzxx commented Jan 6, 2025

还有一个:FlinkDeployment配置resource的时候,不支持配置limit和request吗?两个的cpu和内存必须一致?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant