March 2014
Intermediate to advanced
400 pages
10h 7m
English
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.
#!/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() ...
Read now
Unlock full access