Running the example

The command to run the CountPageView example is:
$ mapreduce jar
/nz/export/ae/products/netezza/mapreduce/current/mapreduce-examples.jar
dbcount -db mapreduce_db -inTable sample_countpageview -inValueCols
url,ref,count -outTable sample_countpageview_out -outKeyCols
url,total_count -maxUrlLength 30

Before running the command above, be sure that:

  • The mapreduce_db database exists.
  • The sample_countpageview input table exists in the mapreduce_db database.
  • The sample_countpageview input table has key (INT) and three value columns: url (VARCHAR), ref (VARCHAR), and count (INT).