Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
YARN Essentials

You're reading from   YARN Essentials A comprehensive, hands-on guide to install, administer, and configure settings in YARN

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784391737
Length 176 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Need for YARN FREE CHAPTER 2. YARN Architecture 3. YARN Installation 4. YARN and Hadoop Ecosystems 5. YARN Administration 6. Developing and Running a Simple YARN Application 7. YARN Frameworks 8. Failures in YARN 9. YARN – Alternative Solutions 10. YARN – Future and Support Index

Running sample examples on YARN


Running the available sample MapReduce programs is a simple task with YARN. The Hadoop version ships with some basic MapReduce examples. You can find them inside $HADOOP_HOME/share/Hadoop/mapreduce/Hadoop-mapreduce-examples-<HADOOP_VERSION>.jar. The location of the file may differ depending on your Hadoop installation folder structure.

Let's include this in the YARN_EXAMPLES path:

$exportYARN_EXAMPLES=$HADOOP_HOME/share/Hadoop/mapreduce

Now, we have all the sample examples in the YARN_EXAMPLES environmental variable. You can access all the examples using this variable; to list all the available examples, try typing the following command on the console:

$ yarn jar $YARN_EXAMPLES/hadoop-mapreduce-examples-2.4.0.2.1.1.0-385.jar

An example program must be given as the first argument.

The valid program names are as follows:

  • aggregatewordcount: This is an aggregate-based map/reduce program that counts the words in the input files

  • aggregatewordhist: This is an...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image