flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aljoscha Krettek <aljos...@apache.org>
Subject Re: Does Flink support reading files or CSV files from java.io.InputStream instead of file paths?
Date Tue, 16 Jun 2020 11:57:34 GMT
Hi Marco,

this is not possible since Flink is designed mostly to read files from a 
distributed filesystem, where paths are used to refer to those files. If 
you read from files on the classpath you could just use plain old Java 
code and won't need a distributed processing system such as Flink.

Best,
Aljoscha

On 16.06.20 06:46, Marco Villalobos wrote:
> 
> Does Flink support reading files or CSV files from java.io.InputStream instead of file
paths?
> 
> I'd rather just store my file on the class path and load it with java.lang.ClassLoader#getResourceAsStream(String).
> 
> If there is a way, I'd appreciate an example.
> 


Mime
View raw message