There are different ways to set up Flink, that is building from source or downloading and extracting it. Both ways are explained in the following sections.
Setting up and a quick execution of Flink
Build Flink source
Download the source from http://Flink.apache.org/downloads.html or clone Git repository https://github.com/apache/Flink.
To clone from Git, enter the following command:
git clone https://github.com/apache/Flink
Maven 3.0.3 and Java 8 are required to build Flink. Use the following command to build Flink using Maven:
mvn clean install -DskipTests If you want to build Flink with different version of hadoop then use: mvn clean install -DskipTests -Dhadoop.version=2.6.1