Book Image

Hadoop Blueprints

By : Anurag Shrivastava, Tanmay Deshpande
Book Image

Hadoop Blueprints

By: Anurag Shrivastava, Tanmay Deshpande

Overview of this book

If you have a basic understanding of Hadoop and want to put your knowledge to use to build fantastic Big Data solutions for business, then this book is for you. Build six real-life, end-to-end solutions using the tools in the Hadoop ecosystem, and take your knowledge of Hadoop to the next level. Start off by understanding various business problems which can be solved using Hadoop. You will also get acquainted with the common architectural patterns which are used to build Hadoop-based solutions. Build a 360-degree view of the customer by working with different types of data, and build an efficient fraud detection system for a financial institution. You will also develop a system in Hadoop to improve the effectiveness of marketing campaigns. Build a churn detection system for a telecom company, develop an Internet of Things (IoT) system to monitor the environment in a factory, and build a data lake – all making use of the concepts and techniques mentioned in this book. The book covers other technologies and frameworks like Apache Spark, Hive, Sqoop, and more, and how they can be used in conjunction with Hadoop. You will be able to try out the solutions explained in the book and use the knowledge gained to extend them further in your own problem space.
Table of Contents (14 chapters)
Hadoop Blueprints
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Stream data analytics


Now let's start looking at the implementation of stream data analytics. Stream data analytics consists of two important elements:

  • Loading streams of sensor data

  • Data visualization using Grafana

Loading streams of sensor data

For batch data analytics we loaded data from Kafka to HDFS, but we will load streaming data into Open TSDB. To do this, first of all please make sure the following services are installed and tested successfully:

  • Kafka

  • Open TSDB

  • Grafana

To extract the data from Kafka topics, we will be using Flume Kafka source and memory channel. But to load the data into Open TSDB, Flume does not provide a suitable sink by default, so I have written this simple sink. The code for the sink is available at https://github.com/deshpandetanmay/flink-opentsdb-sink.

In order to get this sink, first of all you will need to download the source code from GitHub and build it using Maven.

The following command will help:

mvn clean install

This will create a JAR file, which needs to be...