Map Reduce Programs

wordstandarddeviation:

A map/reduce program that counts the standard deviation of the length of the words in the input files.

To run:

bin/hadoop jar hadoop-examples-*.jar wordstandarddeviation <in-dir> <out-dir>

Input:

We’re the knights of the round table
We dance whene’er we’re able
We do routines and chorus scenes
With footwork impeccable.
We dine well here in Camelot
We eat ham and jam and spam a lot.

Output:

The standard deviation is: 2.177855724228664

Screenshots:

wsdsdr

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s