Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
tebeka committed Mar 8, 2013
1 parent ce048cc commit 850c749
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions run-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# Unzip a file in HDFS, example how to run zipmapred with streaming

case $1 in
-h | --help ) echo "usage: $(basename $0) INDIR OUTDIR"; exit;;
esac

if [ $# -ne 2 ]; then
$0 -h
exit 1
fi

hadoop jar /usr/lib/hadoop-mapreduce/hadoop-streaming.jar \
-libjars zipmapred-1.0-SNAPSHOT.jar \
-mapper /bin/cat \
-reducer /bin/cat \
-inputformat com.mikitebeka.mapred.ZipInputFormat \
-input $1 -output $2

0 comments on commit 850c749

Please sign in to comment.