Flink:java.lang.IllegalStateException: No Executor found. make sure to export the HADOOP_CLASSPATH
完整报错如下所示:
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.
报错原因是:未把Flink与Hadoop进行集成。
解决方法是:
需要把flink与hadoop3进行集成。
修改/etc/profile
vim /etc/profile
export HADOOP_HOME="/moudle/hadoop-3.3.0"
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH
export HADOOP_CLASSPATH=`hado