Running the example
The command to run the GrepCount example
is:
$ mapreduce jar
/nz/export/ae/products/netezza/mapreduce/current/mapreduce-examples.jar
grep -db mapreduce_db -inTable sample_grepcount -inValueCols text
-maxMatchingLength 100 -outTable sample_grepcount_out -outKeyCols word
-outValueCols total_count -pattern '[A-Z][a-z]+[A-Z]'
Before running the command above, be sure that:
- The mapreduce_db database exists.
- The sample_grepcount input table exists in the mapreduce_db database.
- The sample_grepcount input table has a text (VARCHAR) column.