summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadya Privalova <nprivalova@mirantis.com>2013-10-15 10:46:09 -0700
committerGerrit Code Review <review@openstack.org>2013-10-15 17:53:15 +0000
commitcb779b6b7d611d4c25c38047c6615a972d74580e (patch)
tree622c28e3db0ec17ba892619c63e6175ab779f489
parentf9415e3478510532aa3b3a8ac3c51eac1c0e2f1e (diff)
Add example edp jobs folder and pig example0.3
Notes
Notes (review): Verified+2: Jenkins Approved+1: Alexander Ignatov <aignatov@mirantis.com> Code-Review+2: Alexander Ignatov <aignatov@mirantis.com> Code-Review+1: Vadim Rovachev <vrovachev@mirantis.com> Code-Review+1: Yaroslav Lobankov <ylobankov@mirantis.com> Code-Review+2: Matthew Farrellee <matt@redhat.com> Submitted-by: Jenkins Submitted-at: Thu, 17 Oct 2013 11:10:34 +0000 Reviewed-on: https://review.openstack.org/51892 Project: openstack/savanna-extra Branch: refs/heads/master
-rw-r--r--edp-examples/README.rst4
-rw-r--r--edp-examples/pig-job/README.rst4
-rw-r--r--edp-examples/pig-job/example.pig3
-rw-r--r--edp-examples/pig-job/expected_output4
-rw-r--r--edp-examples/pig-job/input4
-rw-r--r--edp-examples/pig-job/udf.jarbin0 -> 3745 bytes
6 files changed, 19 insertions, 0 deletions
diff --git a/edp-examples/README.rst b/edp-examples/README.rst
new file mode 100644
index 0000000..549baf4
--- /dev/null
+++ b/edp-examples/README.rst
@@ -0,0 +1,4 @@
1EDP Examples
2============
3
4* Pig job example - trim spaces in input file
diff --git a/edp-examples/pig-job/README.rst b/edp-examples/pig-job/README.rst
new file mode 100644
index 0000000..0fc93af
--- /dev/null
+++ b/edp-examples/pig-job/README.rst
@@ -0,0 +1,4 @@
1Example Pig job
2===============
3
4This script trims spaces in input text
diff --git a/edp-examples/pig-job/example.pig b/edp-examples/pig-job/example.pig
new file mode 100644
index 0000000..4141906
--- /dev/null
+++ b/edp-examples/pig-job/example.pig
@@ -0,0 +1,3 @@
1A = load '$INPUT' using PigStorage(':') as (fruit: chararray);
2B = foreach A generate com.hadoopbook.pig.Trim(fruit);
3store B into '$OUTPUT' USING PigStorage();
diff --git a/edp-examples/pig-job/expected_output b/edp-examples/pig-job/expected_output
new file mode 100644
index 0000000..60a0142
--- /dev/null
+++ b/edp-examples/pig-job/expected_output
@@ -0,0 +1,4 @@
1pomegranate
2banana
3apple
4lychee \ No newline at end of file
diff --git a/edp-examples/pig-job/input b/edp-examples/pig-job/input
new file mode 100644
index 0000000..d2079b5
--- /dev/null
+++ b/edp-examples/pig-job/input
@@ -0,0 +1,4 @@
1 pomegranate
2 banana
3 apple
4 lychee \ No newline at end of file
diff --git a/edp-examples/pig-job/udf.jar b/edp-examples/pig-job/udf.jar
new file mode 100644
index 0000000..2eba702
--- /dev/null
+++ b/edp-examples/pig-job/udf.jar
Binary files differ