O'Reilly logo

Apache Hadoop™ YARN: Moving beyond MapReduce and Batch Processing with Apache Hadoop™ 2 by Jeff Markham, Joseph Niemiec, Vinod Kumar Vavilapalli, Arun C. Murthy, Doug Eadline

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required