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
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Flink on AWS


Now let's look at how we can use Flink on Amazon Web Services (AWS). Amazon provides a hosted Hadoop service called Elastic Map Reduce (EMR). We can use and Flink in combination. We can do reading on EMR at https://aws.amazon.com/documentation/elastic-mapreduce/.

Here I assume that you already have AWS account and knows basics of AWS.

Launching an EMR cluster

The very first thing we need to do is launch EMR cluster. We first need to log in to AWS account and choose EMR service from the console as shown in the following screenshot:

Next we go to EMR console and launch a three-node cluster with one master and two slave nodes. Here we choose minimum cluster size to avoid surprise billing. The following screenshot shows the EMR cluster creation screen:

Generally it takes 10-15 minutes for cluster to be up and running. Once the cluster is ready, we can do SSH to the cluster. For that we first need to click on Create Security Group section and add rule to add SSH port 22 rule. The following...