Add example edp jobs folder and pig example

Change-Id: I30643876e7724b62b8f13a0d65a0b78fde26efcd
This commit is contained in:
Nadya Privalova 2013-10-15 10:46:09 -07:00 committed by Gerrit Code Review
parent f9415e3478
commit cb779b6b7d
6 changed files with 19 additions and 0 deletions

4
edp-examples/README.rst Normal file
View File

@ -0,0 +1,4 @@
EDP Examples
============
* Pig job example - trim spaces in input file

View File

@ -0,0 +1,4 @@
Example Pig job
===============
This script trims spaces in input text

View File

@ -0,0 +1,3 @@
A = load '$INPUT' using PigStorage(':') as (fruit: chararray);
B = foreach A generate com.hadoopbook.pig.Trim(fruit);
store B into '$OUTPUT' USING PigStorage();

View File

@ -0,0 +1,4 @@
pomegranate
banana
apple
lychee

View File

@ -0,0 +1,4 @@
pomegranate
banana
apple
lychee

Binary file not shown.