Configuring tPigStoreResult

Pig

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
Talend Open Studio for Big Data
Talend Big Data Platform
Talend Big Data
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Integration) > Pig components
Design and Development > Third-party systems > Processing components (Integration) > Pig components
Data Quality and Preparation > Third-party systems > Processing components (Integration) > Pig components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the tPigStoreResult labeled normal to open its Component view.
  2. In the Result file field, enter the directory you need to write the result in. In this scenario, it is /user/ychen/tpigmap/traffic_normal, which receives the records reading normal.
  3. Select Remove result directory if exists check box.
  4. In the Store function list, select PigStorage to write the records in human-readable UTF-8 format.
  5. In the Field separator field, enter ;.
  6. Repeat the same operations to configure the tPigStoreResult labeled jam, but set the directory, in the Result file field, as /user/ychen/tpigmap/traffic_jam.

Results

Note:

If either of the components does not retrieve its schema from tPigMap, a warning icon appears. In this case, click the Sync columns button to retrieve the schema from the preceding one and once done, the warning icon disappears.