Chris Tabakakis
07/04/2023, 3:17 PMCaused 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://nightlies.apache.org/flink/flink-docs-stable/ops/filesystems/>.
at org.apache.flink.core.fs.FileSystem.getUnguardedFileSystem(FileSystem.java:543)
at org.apache.flink.core.fs.FileSystem.get(FileSystem.java:409)
at org.apache.flink.streaming.api.functions.source.ContinuousFileMonitoringFunction.run(ContinuousFileMonitoringFunction.java:214)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67)
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:333)
Caused by: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Cannot support file system for 'hdfs' via Hadoop, because Hadoop is not in the classpath, or some classes are missing from the classpath.
Here is the full pastebin in case more information is needed.Martijn Visser
07/04/2023, 8:18 PMMartijn Visser
07/04/2023, 8:19 PMMartijn Visser
07/04/2023, 8:21 PMChris Tabakakis
07/05/2023, 9:13 AMMartijn Visser
07/05/2023, 9:19 AMMartijn Visser
07/05/2023, 9:19 AMChris Tabakakis
07/05/2023, 9:27 AMMartijn Visser
07/05/2023, 9:34 AMMartijn Visser
07/05/2023, 9:36 AMpath to something like <hdfs://yourfile.csv>) and specify format = csv )Chris Tabakakis
07/05/2023, 9:36 AMMartijn Visser
07/05/2023, 9:39 AMfinal FileSource<String> source =
FileSource.forRecordStreamFormat(
new TextLineInputFormat(), new Path("<hdfs://foo/bar>"))
.build();Chris Tabakakis
07/05/2023, 10:14 AMMartijn Visser
07/05/2023, 10:15 AMMartijn Visser
07/05/2023, 10:16 AMIf you need Hadoop dependencies during developing or testing inside the IDE (i.e. for HDFS access), you should configure these dependencies similar to the scope of the dependencies (i.e. to test or to provided).
Chris Tabakakis
07/05/2023, 10:25 AM