This step doesn’t need to be done if you have installed Microsoft HDInsight Emulator for Windows Azure; however, I’ve included this step if you’re attempting to reuse these instructions for Linux … as I do.

In HDFS, this will make a folder named “MaxTemp” under the /user/your-username/ folder ( i.e. /user/your-username/MaxTemp/ ). Then, it will make a folder named “input” under the /user/your-username/MaxTemp/ folder ( i.e. /user/your-username/MaxTemp/input/ ).

Copy the results of this MapReduce project from the HDFS to the local file system.

Using the Hadoop Command Line, execute the following:

hadoop fs -copyToLocal MaxTemp/output/part-r-00000 C:\Temp\MaxTemp

Then, open part-r-00000 in WordPad or Notepad to see the results.

The results should be:

1901 317
1902 244

Remember that WordPad will interpret “\n” as a new line … whereas, Notepad will not. Notepad only interprets “\r\n” as a new line. Therefore, if you’re set on opening up the part-r-00000 file in Notepad, you can first open the file in WordPad, save & close the file, and then open the file in Notepad.