1、Could not get job jar and dependencies from JAR file: JAR file does not exist: -yn
原因:flink1.8版本之后已弃用该参数,ResourceManager将自动启动所需的尽可能多的容器,以满足作业请求的并行性。
解决方法:去掉即可
2、java.lang.IllegalStateException: No Executor found. Please make sure to export the HADOOP_CLASSPATH environment variable or have hadoop in your classpath.
解决方法1、:配置环境变量
export HADOOP_CLASSPATH=`hadoop classpath`
解决方法2、:下载flink-shaded-hadoop-2-uber对应版本的jar包放到lib目录下(没尝试)
3、Exception in thread “Thread-8” java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration ‘classloader.check-leaked-classloader’.
解决方法:在flink-conf.yaml中添加
classloader.check-leaked-classloader: false