You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/07 00:18:00 UTC
[jira] [Commented] (FLINK-9545) Support read a file multiple times
in Flink DataStream
[ https://issues.apache.org/jira/browse/FLINK-9545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16504073#comment-16504073 ]
ASF GitHub Bot commented on FLINK-9545:
---------------------------------------
GitHub user bowenli86 opened a pull request:
https://github.com/apache/flink/pull/6130
[FLINK-9545] Support read a file multiple times in Flink DataStream
## What is the purpose of the change
we need `StreamExecutionEnvironment.readFile/readTextFile` to read each file for N times, but currently it only supports reading file once.
add support for the feature.
## Brief change log
- add a new processing mode as PROCESSING_N_TIMES
- add additional parameter numTimes for StreamExecutionEnvironment.readFile/readTextFile
## Verifying this change
This change is already covered by existing tests, such as *(please describe tests)*.
## Does this pull request potentially affect one of the following parts:
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes)
## Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (docs / JavaDocs)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bowenli86/flink FLINK-9545
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6130.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6130
----
commit d51fd25ca0ff8e38aaf84d2076c9c979cd136c9d
Author: Bowen Li <bo...@...>
Date: 2018-06-07T00:12:59Z
[FLINK-9545] Support read a file multiple times in Flink DataStream
----
> Support read a file multiple times in Flink DataStream
> -------------------------------------------------------
>
> Key: FLINK-9545
> URL: https://issues.apache.org/jira/browse/FLINK-9545
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API
> Affects Versions: 1.6.0
> Reporter: Bowen Li
> Assignee: Bowen Li
> Priority: Major
> Fix For: 1.6.0
>
>
> we need {{StreamExecutionEnvironment.readFile/readTextFile}} to read each file for N times, but currently it only supports reading file once.
> add support for the feature.
> Plan:
> add a new processing mode as PROCESSING_N_TIMES, and add additional parameter {{numTimes}} for {{StreamExecutionEnvironment.readFile/readTextFile}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)