Search in sources :

Example 1 with ProgramAbortException

use of org.apache.flink.client.program.OptimizerPlanEnvironment.ProgramAbortException in project flink by apache.

the class ConnectedComponentsCoGroupTest method getConnectedComponentsCoGroupPlan.

public static Plan getConnectedComponentsCoGroupPlan() {
    // prepare the test environment
    PreviewPlanEnvironment env = new PreviewPlanEnvironment();
    env.setAsContext();
    try {
        ConnectedComponentsWithCoGroup(new String[] { DEFAULT_PARALLELISM_STRING, IN_FILE, IN_FILE, OUT_FILE, "100" });
    } catch (ProgramAbortException pae) {
    // all good.
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail("ConnectedComponentsWithCoGroup failed with an exception");
    }
    return env.getPlan();
}
Also used : ProgramAbortException(org.apache.flink.client.program.OptimizerPlanEnvironment.ProgramAbortException) PreviewPlanEnvironment(org.apache.flink.client.program.PreviewPlanEnvironment) ProgramAbortException(org.apache.flink.client.program.OptimizerPlanEnvironment.ProgramAbortException)

Aggregations

ProgramAbortException (org.apache.flink.client.program.OptimizerPlanEnvironment.ProgramAbortException)1 PreviewPlanEnvironment (org.apache.flink.client.program.PreviewPlanEnvironment)1