Mohit Anchlia created FLINK-7329:
------------------------------------

             Summary: 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
         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)

Reply via email to