[ 
https://issues.apache.org/jira/browse/FLINK-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14199156#comment-14199156
 ] 

ASF GitHub Bot commented on FLINK-1008:
---------------------------------------

GitHub user knub opened a pull request:

    https://github.com/apache/incubator-flink/pull/184

    [FLINK-1008] Fix createProgramPlan() throws exception

    Problem was, that ExecutionEnvironment#getExecutionPlan clears the data
    sinks, i.e. a following ExecutionEnvironment#execute will throw an error
    because there are no data sinks.
    
    This introduces a new flag for ExecutionEnvironment#createProgramPlan to
    indicate, that the the sinks shall not be cleared.
    This does not break any existing code.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/knub/incubator-flink knub/flink-1008

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/184.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 #184
    
----
commit 7359613e54d2d66e903b3f93a4a0c190aa73e2e3
Author: Stefan Bunk <[email protected]>
Date:   2014-11-05T16:21:24Z

    [FLINK-1008] Fix createProgramPlan() throws exception
    
    Problem was, that ExecutionEnvironment#getExecutionPlan clears the data
    sinks, i.e. a following ExecutionEnvironment#execute will throw an error
    because there are no data sinks.
    
    This introduces a new flag for ExecutionEnvironment#createProgramPlan to
    indicate, that the the sinks shall not be cleared.
    This does not break any existing code.

----


> createProgramPlan() throws exception
> ------------------------------------
>
>                 Key: FLINK-1008
>                 URL: https://issues.apache.org/jira/browse/FLINK-1008
>             Project: Flink
>          Issue Type: Bug
>          Components: Java API
>            Reporter: Bastian Köcher
>         Attachments: impro3-ss14-stratosphere.zip
>
>
> After calling createProgramPlan() I get the following exception:
> java.lang.RuntimeException: No data sinks have been created yet. A program 
> needs at least one sink that consumes data. Examples are writing the data set 
> or printing it.
>       at 
> eu.stratosphere.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:618)
>       at 
> eu.stratosphere.api.java.LocalEnvironment.execute(LocalEnvironment.java:51)
>       at 
> eu.stratosphere.api.java.ExecutionEnvironment.execute(ExecutionEnvironment.java:516)
> The plan execute and we also have data sinks, so the error is really 
> confusing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to