flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Metzger <rmetz...@apache.org>
Subject Re: Get file metadata
Date Wed, 01 Jul 2015 09:35:09 GMT
Hi Ronny,

check out this answer on SO:
http://stackoverflow.com/questions/30599616/create-objects-from-input-files-in-apache-flink
It is a similar use case ... I guess you can get the metadata from the
input split as well.

On Wed, Jul 1, 2015 at 11:30 AM, Ronny Bräunlich <r.braeunlich@gmail.com>
wrote:

> Hello,
>
> I want to read a file containing textfiles with Flink.
> As I already found out I can simply point the environment to the directory
> and it will read all the files.
> What I couldn’t find out is if it’s possible to keep the file metadata
> somehow.
> Concrete, I need the timestamp, the filename and the file content. Is
> there a way to do this with the ExecutionEnvironment?
>
> Cheers,
> Ronny

Mime
View raw message