Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

How to access REST services


The preceding sections in the chapter cover the list of URIs exposed by YARN. In this section, you will learn about three different ways to fetch data from these services:

  • REST client plugins

  • Curl command

  • Java API

RESTClient plugins

You can use plugins available for different web browsers to fetch data from YARN REST services. The RESTClient plugin can be used in Firefox. To install or read more about the plugin, refer to https://addons.mozilla.org/en-us/firefox/addon/restclient/:

Following are the steps to use RESTClient in Firefox:

  1. After successful installation, open the RESTClient page in your Firefox browser. The page contains a menu section and a request section:

  2. From the menu section, add a Custom Header to the request:

  3. Enter Accept and application/json in the Name and Value fields of the header, respectively. If you need the response as XML data, then specify the value of the Accept header as application/xml:

  4. Specify request URI: In the request section, choose 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 €18.99/month. Cancel anytime