You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2017/08/01 09:58:00 UTC

[jira] [Closed] (FLINK-7329) Unable to use FileInputStream with StreamExecutionEnvironment.readFile with interval

     [ https://issues.apache.org/jira/browse/FLINK-7329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aljoscha Krettek closed FLINK-7329.
-----------------------------------
    Resolution: Not A Problem

This o

> Unable to use FileInputStream with StreamExecutionEnvironment.readFile with interval
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-7329
>                 URL: https://issues.apache.org/jira/browse/FLINK-7329
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API
>         Environment: redhat 6, flink 1.3.1
>            Reporter: Mohit Anchlia
>
> {code:java}
> 		FileInputFormat<String> fileInputFormat = new TextInputFormat(new Path(args[0]));
> 		fileInputFormat.setNestedFileEnumeration(true);
> 		streamEnv.readFile(fileInputFormat, args[0],
> 				FileProcessingMode.PROCESS_CONTINUOUSLY, 10000L).print();
> {code}
> When trying to run this code I get following error. It's not clear what the problem is here and why it fails with this message.
> [main] INFO org.apache.flink.api.java.typeutils.TypeExtractor - class org.apache.flink.streaming.api.functions.source.TimestampedFileInputSplit does not contain a setter for field modificationTime
> [main] INFO org.apache.flink.api.java.typeutils.TypeExtractor - class org.apache.flink.streaming.api.functions.source.TimestampedFileInputSplit is not a valid POJO type because not all fields are valid POJO fields.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)