You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jeff Zhang (JIRA)" <ji...@apache.org> on 2018/12/03 09:20:00 UTC

[jira] [Updated] (FLINK-11049) Unable to execute partial DAG

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

Jeff Zhang updated FLINK-11049:
-------------------------------
    Description: 
{code}
val benv = ExecutionEnvironment.getExecutionEnvironment
val btEnv = TableEnvironment.getTableEnvironment(benv)
val data = benv.fromElements("hello world", "hello flink", "hello hadoop")
data.writeAsText("/Users/jzhang/a.txt", FileSystem.WriteMode.OVERWRITE);
val table = data.flatMap(line=>line.split("\\s")).
  map(w => (w, 1)).
  toTable(btEnv, 'word, 'number)
btEnv.registerTable("wc", table)
btEnv.sqlQuery("select word, count(1) from wc group by word").
  toDataSet[Row].print()
{code}

In the above example, the last statement will trigger 2 job execution (writeAsText and print), but what user expect is the print job. The root cause is that currently, flink unable to submit partial dag. 

  was:
{code}
val benv = ExecutionEnvironment.getExecutionEnvironment
val btEnv = TableEnvironment.getTableEnvironment(benv)
val data = benv.fromElements("hello world", "hello flink", "hello hadoop")
data.writeAsText("/Users/jzhang/a.txt", FileSystem.WriteMode.OVERWRITE);
val table = data.flatMap(line=>line.split("\\s")).
  map(w => (w, 1)).
  toTable(btEnv, 'word, 'number)
btEnv.registerTable("wc", table)
btEnv.sqlQuery("select word, count(1) from wc group by word").
  toDataSet[Row].print()
{code}

In the above example, the last statement will trigger the 2 job execution (writeAsText and print), but what user expect is the print job. The root cause is that currently, flink unable to submit partial dag. 


> Unable to execute partial DAG
> -----------------------------
>
>                 Key: FLINK-11049
>                 URL: https://issues.apache.org/jira/browse/FLINK-11049
>             Project: Flink
>          Issue Type: Bug
>          Components: Job-Submission
>    Affects Versions: 1.7.0
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>            Priority: Major
>
> {code}
> val benv = ExecutionEnvironment.getExecutionEnvironment
> val btEnv = TableEnvironment.getTableEnvironment(benv)
> val data = benv.fromElements("hello world", "hello flink", "hello hadoop")
> data.writeAsText("/Users/jzhang/a.txt", FileSystem.WriteMode.OVERWRITE);
> val table = data.flatMap(line=>line.split("\\s")).
>   map(w => (w, 1)).
>   toTable(btEnv, 'word, 'number)
> btEnv.registerTable("wc", table)
> btEnv.sqlQuery("select word, count(1) from wc group by word").
>   toDataSet[Row].print()
> {code}
> In the above example, the last statement will trigger 2 job execution (writeAsText and print), but what user expect is the print job. The root cause is that currently, flink unable to submit partial dag. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)