Running the example
The command to run the WordCount example
is:
$ mapreduce jar
/nz/export/ae/products/netezza/mapreduce/current/mapreduce-examples.jar
wordcount -db mapreduce_db -inTable sample_wordcount -inKeyCols key
-inValueCols line -outTable sample_wordcount_out -outKeyCols word
-outValueCols count -maxWordLength 25
Before running the command above, be sure that:
- the mapreduce_db database exists
- the sample_wordcount input table exists (in the mapreduce_db database)
- the sample_wordcount input table has key (for example, INT) and line (for example, VARCHAR) columns