Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2797 CLI: Missing option to submit jobs in detached mode
  3. FLINK-2850

Limit the types of jobs which can run in detached mode

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      Currently, there are two types of programs which can be submitted.
      1. Program interface
      2. Interactive programs, whose main method is run.

      For interactive mode,
      In blocking mode, the programs can be executed without any issues since every execution is blocked, and its results can be made available at a further point in the program, as well as the Client is kept alive and is able to receive job outputs.
      However, in detached mode, interactive programs which are any of the following three types of programs create issues:
      1.

      DataSet<T> dataset = ...
      List<T> result = dataset.collect(); // accesses accumulators but the results of the inner call to execute aren't available
      

      2.

      env.execute().getAccumulatorResult(); // fails again because the results aren't availabe.
      

      3.

      env.execute();
      env.execute(); // two executions. Will return two different job ids
      

      These problems make the current yarn detached job mode fail, and will lead to issues when fixing FLINK-2797.

      Attachments

        Activity

          People

            sachingoel0101 Sachin Goel
            sachingoel0101 Sachin Goel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: