[Example] Flink Flink Learning

Bundled Examples

Detailed examples of different Flink api

Examples of the method of operation:
The easiest way is to run a local flink cluster ./bin/start-cluster.sh
complete start flink cluster, we run native code WordCount example you can:

./bin/flink run ./examples/batch/WordCount.jar

Other examples can also be used in this way to run
a path very example no built-in data file, we need to develop data

./bin/flink run ./examples/batch/WordCount.jar --input /path/to/some/text/data --output /path/to/result

If it is not the local data, such as data on hdfs, you need to add the file path prefix hdfs: //

Examples on the Web

You can also learn from some blog flink

Guess you like

Origin www.cnblogs.com/yankang/p/11921075.html