diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-14 16:46:27 +0200 |
commit | 26c490f404731d053a6205719b6246502c07b449 (patch) | |
tree | 3aa721098f1251dfbf2249ecd2736434c13b1d48 /hadoop/streaming/no_reducer.sh |
init
Diffstat (limited to 'hadoop/streaming/no_reducer.sh')
-rwxr-xr-x | hadoop/streaming/no_reducer.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hadoop/streaming/no_reducer.sh b/hadoop/streaming/no_reducer.sh new file mode 100755 index 0000000..7267166 --- /dev/null +++ b/hadoop/streaming/no_reducer.sh @@ -0,0 +1,23 @@ +#!/bin/sh + + +hadoop dfs -put no_reducer.input no_reducer.input + +HADOOP_HOME=/usr/lib/hadoop +HADOOP_VERSION=0.20.2-cdh3u1 +JAR=contrib/streaming/hadoop-streaming-$HADOOP_VERSION.jar +HSTREAMING="$HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/$JAR" + +OUT=no_reducer_out + +$HSTREAMING \ + -input no_reducer.input \ + -output $OUT \ + -mapper "no_reducer.rb" \ + -file "no_reducer.rb" \ + -reducer NONE + +hadoop dfs -get $OUT . +hadoop dfs -rmr $OUT +hadoop dfs -rm no_reducer.input + |