C. YARN Administration Scripts

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

configure-hadoop2.sh

#!/bin/bashHADOOP_VERSION=2.0.5-alphaHADOOP_HOME=/opt/hadoop-"${HADOOP_VERSION}"source hadoop-xml-conf.shop=file=property=value=refresh=falsedelete(){        del_config --file $file --property $property}put(){        put_config --file $file --property $property --value $value}deploy(){        echo "Deploying $file to the cluster..."        pdcp -w ^all_hosts "$file" $HADOOP_HOME/etc/hadoop/}restart_hadoop() ...

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 live online training, plus books, videos, and digital content from nearly 200 publishers.