Apache Flink Local Mode Installation on Ubuntu 14.04
Apache Flink is an open source stream processing framework developed by the Apache Software Foundation. The core of Apache Flink is a distributed streaming dataflow engine written in Java and Scala.
1) A machine with Ubuntu 14.04 LTS operating system and
2) Apache Hadoop 2.6 installed (How to install Hadoop on Ubuntu 14.04)
3) Scala 2.10.5 Software (Download Here)
4) Apache Flink 1.2.1 Software (Download Here)
If you want to interact with Hadoop (e.g. HDFS or HBase), make sure to pick the Flink package matching your Hadoop version.
Flink Local Mode Installation
This post is intended to provide instructions on how to install Flink locally on a single machine.
Step 1 - Update. Open a terminal (CTRL + ALT + T) and type the following sudo command. It is advisable to run this before installing any package, and necessary to run it to install the latest updates, even if you have not added or removed any Software Sources.
Step 2 - Installing Java 7.
Step 3 - Install open-ssh server. It is a cryptographic network protocol for operating network services securely over an unsecured network. The best known example application is for remote login to computer systems by users.
Step 4 - Creating scala directory.
Step 5 - Change the ownership and permissions of the directory /usr/local/scala. Here 'hduser' is an Ubuntu username.
Step 6 - Untar the scala-2.10.5.tgz file. In my case the downloaded scala-2.10.5.tgz file is in /home/hduser/Desktop folder. For you it might be in /downloads folder check it.
Step 7 - Move the contents of scala-2.10.5 folder to /usr/local/scala
Step 8 - Creating flink directory.
Step 9 - Change the ownership and permissions of the directory /usr/local/flink. Here 'hduser' is an Ubuntu username.
Step 10 - Untar the flink-1.2.1-bin-hadoop26-scala_2.10.tgz. In my case the downloaded flink-1.2.1-bin-hadoop26-scala_2.10.tgz file is in /home/hduser/Desktop folder. For you it might be in /downloads folder check it.
Step 11 - Move the contents of flink-1.2.1 folder to /usr/local/flink
Step 12 - Edit $HOME/.bashrc file by adding the java, flink and scala path.
$HOME/.bashrc file. Add the following lines. Save and Close.
Step 13 - Reload your changed $HOME/.bashrc settings
Step 14 - Change the directory to /usr/local/flink/bin
Step 15 - Start flink
Step 16 - The JPS (Java Virtual Machine Process Status Tool) tool is limited to reporting information on JVMs for which it has the access permissions.
Step 17 - Stop flink
Please share this blog post and follow me for latest updates on