summaryrefslogtreecommitdiff
path: root/hadoop/wordcount/pipes/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hadoop/wordcount/pipes/run.sh')
-rwxr-xr-xhadoop/wordcount/pipes/run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/hadoop/wordcount/pipes/run.sh b/hadoop/wordcount/pipes/run.sh
new file mode 100755
index 0000000..0b02be7
--- /dev/null
+++ b/hadoop/wordcount/pipes/run.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+HADOOP=/usr/lib/hadoop/
+
+$HADOOP/bin/hadoop pipes \
+ -D hadoop.pipes.java.recordreader=true \
+ -D hadoop.pipes.java.recordwriter=true \
+ -D mapred.reduce.tasks=30 \
+ -input in/bible.txt \
+ -output out/bible-wc \
+ -program ./wordcount
+