Submitting a sample MapReduce application

When a MapReduce application is submitted to a Hadoop-YARN cluster, a series of events occurs in different components. In this section, we will submit a sample Hadoop-YARN application to a cluster. We will discuss the application flow with the help of snapshots and understand how the series of events occurs.

Submitting an application to the cluster

As discussed in Chapter 3, Administering a Hadoop-YARN Cluster, the yarn jar command is used to submit a MapReduce application to a Hadoop-YARN cluster. An example jar is packaged inside the Hadoop bundle. It contains sample MapReduce programs, such as word count, pi estimator, pattern search, and so on. This is shown in the following figure:

As shown in the preceding ...

Get Learning YARN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.