Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning YARN

You're reading from   Learning YARN Moving beyond MapReduce - learn resource management and big data processing using YARN

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781784393960
Length 278 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Starting with YARN Basics FREE CHAPTER 2. Setting up a Hadoop-YARN Cluster 3. Administering a Hadoop-YARN Cluster 4. Executing Applications Using YARN 5. Understanding YARN Life Cycle Management 6. Migrating from MRv1 to MRv2 7. Writing Your Own YARN Applications 8. Dive Deep into YARN Components 9. Exploring YARN REST Services 10. Scheduling YARN Applications 11. Enabling Security in YARN 12. Real-time Data Analytics Using YARN Index

Using the Hadoop-YARN commands

YARN commands are invoked using the bin/yarn script in the Hadoop bundle. The basic syntax for the yarn command is:

yarn [--config confdir] COMMAND COMMAND_OPTIONS

Running the YARN script without any arguments, prints the description for all the commands. The config option is optional and its default value is $HADOOP_PREFIX/etc/hadoop.

YARN commands are classified as user and administration commands, as shown in the following figure:

Using the Hadoop-YARN commands

The user commands

Hadoop-YARN clients execute the user commands. These clients connect to the YARN services using the configuration settings specified in the yarn-site.xml file. As specified in the previous chapter, the yarn-site.xml file and the other configuration files are all placed in the Hadoop configuration folder (/home/hduser/hadoop-2.5.1/etc/conf/). There are mainly six user commands in the Hadoop-YARN framework.

Jar

The jar command is used to run a jar file with the YARN code, that is, to submit a YARN application to the...

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