Loading the event data - 7.2

Pig

author
EnrichVersion
7.2
task

Procedure

  1. Double-click the tPigLoad labeled event to open its Component view.
  2. Click the button next to Edit schema to open the schema editor.
  3. Click the button three times to add three rows and in the Column column, rename them as date, street and event, respectively.
  4. Click OK to validate these changes.
  5. In the Mode area, select Map/Reduce.
    As you have configured the connection to the given Hadoop distribution in that first tPigLoad component, traffic, this event component reuses that connection and therefore, the corresponding options in the Distribution and the Version lists have been automatically selected.
  6. In the Load function field, select the PigStorage function to read the source data.
  7. In the Input file URI field, enter the directory where the event data is stored. As explained earlier, the directory in this example is "/user/ychen/tpigmap/date&event".