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

How to customize FLINK_HOME properly #267

Open
00-Luoshu opened this issue Nov 25, 2022 · 0 comments
Open

How to customize FLINK_HOME properly #267

00-Luoshu opened this issue Nov 25, 2022 · 0 comments

Comments

@00-Luoshu
Copy link

00-Luoshu commented Nov 25, 2022

When I try to run basic-example (jarURI:local:///opt/flink/examples/streaming/StateMachineExample.jar ) using flink-docker , whose FLINK_HOME is default /opt/flink, and success to run.

But after changing FLINK_HOME to /myflink/flink, change the jarURI to local:///myflink/flink/examples/streaming/StateMachineExample.jar and want to run the example again, I failed, came into the error:

java.lang.NullPointerException: null
	at org.apache.flink.kubernetes.utils.KubernetesUtils.checkJarFileForApplicationMode(KubernetesUtils.java:400) ~[flink-dist-1.15.2.jar:1.15.2]
	at org.apache.flink.kubernetes.entrypoint.KubernetesApplicationClusterEntrypoint.getPackagedProgramRetriever(KubernetesApplicationClusterEntrypoint.java:115) ~[flink-dist-1.15.2.jar:1.15.2]
	at org.apache.flink.kubernetes.entrypoint.KubernetesApplicationClusterEntrypoint.getPackagedProgram(KubernetesApplicationClusterEntrypoint.java:96) ~[flink-dist-1.15.2.jar:1.15.2]
	at org.apache.flink.kubernetes.entrypoint.KubernetesApplicationClusterEntrypoint.main(KubernetesApplicationClusterEntrypoint.java:70) [flink-dist-1.15.2.jar:1.15.2]

What causes this, and what should I do besides changing FLINK_HOME

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

No branches or pull requests

1 participant