How to customize FLINK_HOME properly
00-Luoshu opened this issue · comments
Zhang Yu commented
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