Cluster Execution

    The command line interface lets you submit packaged programs (JARs) to a cluster (or single machine setup).

    Remote Environment

    The remote environment lets you execute Flink Java programs on a cluster directly. The remote environment points to the cluster on which you want to execute the program.

    Example

    The following illustrates the use of the RemoteEnvironment:

    1. public static void main(String[] args) throws Exception {
    2. ExecutionEnvironment env = ExecutionEnvironment
    3. data
    4. .filter(new FilterFunction<String>() {
    5. public boolean filter(String value) {
    6. })
    7. .writeAsText("hdfs://path/to/result");
    8. env.execute();
    9. }