[
https://issues.apache.org/jira/browse/FLINK-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14568847#comment-14568847
]
Aljoscha Krettek commented on FLINK-2069:
-----------------------------------------
Could you maybe share your code? I now have this example code and it still
produces output:
{code}
DataStream<String> text = env.socketTextStream("localhost", 9999);
IterativeDataStream<Tuple2<String, Integer>> iterate = text.flatMap(new
WordCount.Tokenizer()).iterate();
SplitDataStream<Tuple2<String, Integer>> iterEnd = iterate.map(new
MapFunction<Tuple2<String, Integer>, Tuple2<String, Integer>>() {
private static final long serialVersionUID = 1L;
@Override
public Tuple2<String, Integer> map(Tuple2<String, Integer> value) throws
Exception {
return new Tuple2<String, Integer>(value.f0, value.f1 + 1);
}
}).split(new OutputSelector<Tuple2<String, Integer>>() {
private static final long serialVersionUID = 1L;
@Override
public Iterable<String> select(Tuple2<String, Integer> value) {
if (value.f1 < 10) {
return Lists.newArrayList("iter");
} else {
return Lists.newArrayList("end");
}
}
});
iterate.closeWith(iterEnd.select("iter"));
iterEnd.select("end").writeAsCsv("/Users/aljoscha/Downloads/wc-csv-out",
FileSystem.WriteMode.OVERWRITE).setParallelism(1);
{code}
Are you using a timeout in your {{iterate()}} call?
> writeAsCSV function in DataStream Scala API creates no file
> -----------------------------------------------------------
>
> Key: FLINK-2069
> URL: https://issues.apache.org/jira/browse/FLINK-2069
> Project: Flink
> Issue Type: Bug
> Components: Streaming
> Reporter: Faye Beligianni
> Priority: Blocker
> Labels: Streaming
> Fix For: 0.9
>
>
> When the {{writeAsCSV}} function is used in the DataStream Scala API, no file
> is created in the specified path.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)