Skip to content
Browse files

Enriched/Formatted

  • Loading branch information...
1 parent c162721 commit 17031e4c61e3e7ff57878be3fa7ba3989be446d2 @nvijayap committed Dec 27, 2013
Showing with 13 additions and 11 deletions.
  1. +13 −11 README.md
View
24 README.md
@@ -1,40 +1,42 @@
hadoop-yarn
===========
-Simple Hadoop Yarn Application
+<b>Simple Hadoop Yarn (With Use Case: Send Email using Yarn)</b>
-Tested on -
+<b>Tested on</b> -
-Mac OS X 10.9 using java version "1.7.0_40"
+* Mac OS X 10.9 using java version "1.7.0_40"
-and Hortonworks Sandbox Version 2.0<br>
+and
+
+* Hortonworks Sandbox Version 2.0<br>
(http://hortonworks.com/products/hortonworks-sandbox/)<br>
using java version "1.6.0_24"
-PREREQ:<br>
+<b>PREREQ</b>:<br>
You need to have installed Hadoop 2 on your Mac,<br>
or be using Hortonworks Sandbox Version 2.0<br>
-NOTE:<br>
+<b>NOTE</b>:<br>
Prior knowledge of Hadoop source code,<br>
especially within this area helps -<br>
hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications
-RUNNING:<br>
+<b>RUNNING</b>:<br>
Just run the BASH script (run-simple-yarn-app.sh)<br>
It will do a maven build, and then run the yarn client.
-USAGE:<br>
+<b>USAGE</b>:<br>
$ ./run-simple-yarn-app.sh<br>
=> Usage: ./run-simple-yarn-app.sh -c <unix_command> -n <number_of_yarn_containers>
-SAMPLE RUN:<br>
+<b>SAMPLE RUN</b>:<br>
$ ./run-simple-yarn-app.sh -c /usr/bin/who -n 9
-EXTRAS:<br>
+<b>EXTRAS (Use Case: Send Email)</b>:<br>
Want to send email from all the yarn Containers?<br>
Place the sendemail ruby script in accessible location<br>
(/bin, /usr/bin, or some other standard location of PATH,<br>
or mention the full path in run script).<br>
-$ ./run-simple-yarn-app.sh -c 'sendemail from@domain.com pw' -n 9
+$ ./run-simple-yarn-app.sh -c 'sendemail <your_email_address> <your_email_password>' -n 9

0 comments on commit 17031e4

Please sign in to comment.
Something went wrong with that request. Please try again.