Skip to content

Commit

Permalink
Add test script
Browse files Browse the repository at this point in the history
  • Loading branch information
caesar0301 committed Dec 25, 2015
1 parent eddf4c8 commit 03a5278
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions etlers/WifiToolkit/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -e

APP_NAME="cn.edu.sjtu.omnilab.odh.spark.MergeWifiSession"
BINJAR="target/scala-2.10/WifiToolkit-assembly-1.0.jar"

if [ $# -lt 2 ]; then
echo "Usage: $0 <in> <out>"
exit -1
fi

input=$1
output=$2
echo "Output file:" $output

rm -rf $output

spark-submit --master local --class $APP_NAME $BINJAR $input $output

if [ -d $output ]; then
echo "Output: "
head -n 20 $output/part-00000
echo "..."
fi

0 comments on commit 03a5278

Please sign in to comment.