缺少hadoop相关依赖,有的博主会下载一份2.6版本hadoop或者老版本flink,将依赖导入flink
后发现提供一个包放入$FLINK_HOME/lib下即可
flink-shaded-hadoop-2-uber-2.7.5-7.0
https://repo.maven.apache.org/maven2/org/apache/flink/flink-shaded-hadoop-2-uber/2.7.5-7.0/flink-shaded-hadoop-2-uber-2.7.5-7.0.jar
Caused by: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file system implementation for scheme 'hdfs'. The scheme is not directly supported by Flink and no Hadoop file system to support this scheme could be loaded. For a full list of supported file systems, please see https://ci.apache.org/projects/flink/flink-docs-stable/ops/filesy