1. Miki Tebeka
  2. zipstream

Commits

Miki Tebeka  committed 5bdf431

example

  • Participants
  • Parent commits 5657b8f
  • Branches default

Comments (0)

Files changed (1)

File run-example.sh

View file
  • Ignore whitespace
+#!/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
+