Book Image

Learning Apache Flink

By : Tanmay Deshpande
Book Image

Learning Apache Flink

By: Tanmay Deshpande

Overview of this book

<p>With the advent of massive computer systems, organizations in different domains generate large amounts of data on a real-time basis. The latest entrant to big data processing, Apache Flink, is designed to process continuous streams of data at a lightning fast pace.</p> <p>This book will be your definitive guide to batch and stream data processing with Apache Flink. The book begins with introducing the Apache Flink ecosystem, setting it up and using the DataSet and DataStream API for processing batch and streaming datasets. Bringing the power of SQL to Flink, this book will then explore the Table API for querying and manipulating data. In the latter half of the book, readers will get to learn the remaining ecosystem of Apache Flink to achieve complex tasks such as event processing, machine learning, and graph processing. The final part of the book would consist of topics such as scaling Flink solutions, performance optimization and integrating Flink with other tools such as ElasticSearch.</p> <p>Whether you want to dive deeper into Apache Flink, or want to investigate how to get more out of this powerful technology, you’ll find everything you need inside.</p>
Table of Contents (17 chapters)
Learning Apache Flink
About the Author
About the Reviewers
Customer Feedback

Flink on YARN

Flink has been built-in supported to be execution-ready on YARN. Any application build using Flink APIs can be executed on YARN without much effort. Users don't need to set up or install anything if they already have a YARN cluster. Flink expects the following requirements to be met:

  • Hadoop version should be 2.2 or above

  • HDFS should be up-and-running


In order to run Flink on YARN, the following configurations needs to be done. First of all, we need to download the Hadoop compatible version of the Flink distribution.


The binaries are available for download at You have to choose from the following options.

Let's assume we are running Hadoop 2.7 and Scala 2.11. We will download the specific binary and store it on a node where Hadoop is installed and running.

Once downloaded, we need to extract the tar files as shown here:

$tar -xzf flink-1.1.4-bin-hadoop27-scala_2.11.tgz
$cd flink-1.1.4

Starting a Flink YARN session

Once the binaries...