背景想提交Flink任务到Yarn上,在执行Flink的客户端 flink run的时候出现如下问题
[root@node01 bin]# ./flink run -yd -m yarn-cluster -c com.demo.DataGenDemo /root/flink-demo-1.0-SNAPSHOT.jar
------------------------------------------------------------
The program finished with the following exception:java.lang.IllegalStateException: No Executor found. Please make sure to export the HADOOP_CLASSPATH environment variable or have hadoop in your classpath. For more information refer to the "Deployment" section of the official Apache Flink documentation.
at org.apache.flink.yarn.cli.FallbackYarnSessionCli.isActive(FallbackYarnSessionCli.java:41)
at org.apache.flink.client.cli.CliFrontend.validateAndGetActiveCommandLine(CliFrontend.java:1236)
at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:234)
at org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1054)