Book Image

Hadoop Operations and Cluster Management Cookbook

By : Shumin Guo
Book Image

Hadoop Operations and Cluster Management Cookbook

By: Shumin Guo

Overview of this book

<p>We are facing an avalanche of data. The unstructured data we gather can contain many insights that could hold the key to business success or failure. Harnessing the ability to analyze and process this data with Hadoop is one of the most highly sought after skills in today's job market. Hadoop, by combining the computing and storage powers of a large number of commodity machines, solves this problem in an elegant way!</p> <p>Hadoop Operations and Cluster Management Cookbook is a practical and hands-on guide for designing and managing a Hadoop cluster. It will help you understand how Hadoop works and guide you through cluster management tasks.</p> <p>This book explains real-world, big data problems and the features of Hadoop that enables it to handle such problems. It breaks down the mystery of a Hadoop cluster and will guide you through a number of clear, practical recipes that will help you to manage a Hadoop cluster.</p> <p>We will start by installing and configuring a Hadoop cluster, while explaining hardware selection and networking considerations. We will also cover the topic of securing a Hadoop cluster with Kerberos, configuring cluster high availability and monitoring a cluster. And if you want to know how to build a Hadoop cluster on the Amazon EC2 cloud, then this is a book for you.</p>
Table of Contents (15 chapters)
Hadoop Operations and Cluster Management Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Monitoring a Hadoop cluster with JMX


JMX is the technology used by Java to build, monitor, and manage distributed systems and network applications. It has been incorporated into Java from J2SE platform 5.0. For more information about JMX, please visit the official website at http://www.oracle.com/technetwork/java/javase/tech/javamanagement-140525.html. In this recipe, we will outline steps to configure Hadoop cluster monitoring with JMX.

Tip

In this chapter, we assume to monitor Hadoop Version 1.1.y or the corresponding 0.20.x Hadoop release. Configurations for monitoring Hadoop Versions 2.0.x or 0.23.x should follow the recipe with some changes.

Getting ready

We assume that Oracle JDK has been installed, and our Hadoop cluster has been configured properly, and all the daemons are running without any problems.

How to do it...

Use the following steps to configure JMX for monitoring a Hadoop cluster:

  1. Create a JMX password file for remote monitoring with the following command:

    cp $JAVA_HOME/jre/lib...