#!/bin/sh


$HADOOP_HOME/bin/hadoop fs -rmr output/mediumevents_s/$1
$HADOOP_HOME/bin/hadoop jar mediumevents_s.jar org.PP.MediumEvents_straight /user/hadoop/input/$1/event_trace/event_trace.tab /user/hadoop/output/mediumevents_s/$1
echo "Result available in /user/hadoop/output/mediumevents_s/$1: $HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/mediumevents_s/$1/part-00000"
echo "-------------------------"
echo "PRINTING..."
echo "-------------------------"
$HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/mediumevents_s/$1/part-00000
