Add example edp jobs folder and pig example
Change-Id: I30643876e7724b62b8f13a0d65a0b78fde26efcd
This commit is contained in:
parent
f9415e3478
commit
cb779b6b7d
|
@ -0,0 +1,4 @@
|
||||||
|
EDP Examples
|
||||||
|
============
|
||||||
|
|
||||||
|
* Pig job example - trim spaces in input file
|
|
@ -0,0 +1,4 @@
|
||||||
|
Example Pig job
|
||||||
|
===============
|
||||||
|
|
||||||
|
This script trims spaces in input text
|
|
@ -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();
|
|
@ -0,0 +1,4 @@
|
||||||
|
pomegranate
|
||||||
|
banana
|
||||||
|
apple
|
||||||
|
lychee
|
|
@ -0,0 +1,4 @@
|
||||||
|
pomegranate
|
||||||
|
banana
|
||||||
|
apple
|
||||||
|
lychee
|
Binary file not shown.
Loading…
Reference in New Issue