summaryrefslogtreecommitdiff
path: root/dtrain/test/wc_pipes/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dtrain/test/wc_pipes/run.sh')
-rwxr-xr-xdtrain/test/wc_pipes/run.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/dtrain/test/wc_pipes/run.sh b/dtrain/test/wc_pipes/run.sh
new file mode 100755
index 00000000..de7d8aef
--- /dev/null
+++ b/dtrain/test/wc_pipes/run.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+HADOOP=~/z/hadoop-0.20.2/
+
+$HADOOP/bin/hadoop dfs -put wordcount wordcount
+
+$HADOOP/bin/hadoop pipes -D hadoop.pipes.java.recordreader=true \
+ -D hadoop.pipes.java.recordwriter=true \
+ -input in/bible.txt -output out/bible_out \
+ -program ./wordcount
+