MapReduce: WordCount Example

 

WordCount v1.0

This works with a local-standalone, pseudo-distributed or fully-distributed Hadoop installation.

Source Code

Usage

Compile WordCount.java:

create a jar:

Sample text-files as input:

Run the application:

Output:

Link

https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html#Example:_WordCount_v1.0