B. YARN Installation Scripts

The following is a listing of the installation scripts discussed in Chapter 5, “Installing Apache Hadoop YARN.” They can be used to help follow the installation discussion. All of the scripts are available from the download page listed in Appendix A.

install-hadoop2.sh

#!/bin/bash## Install Hadoop 2 using pdsh/pdcp where possible.## Command can be interactive or file-based. This script sets up# a Hadoop 2 cluster with basic configuration. Modify data, log, and pid# directories as desired. Further configure your cluster with ./conf-hadoop2.sh# after running this installation script.## Basic environment variables. Edit as necessaryHADOOP_VERSION=2.2.0HADOOP_HOME="/opt/hadoop-${HADOOP_VERSION}" ...

Get Apache Hadoop™ YARN: Moving beyond MapReduce and Batch Processing with Apache Hadoop™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.