#!/bin/sh $HADOOP_HOME/bin/hadoop fs -rmr output/mediumevents_s/pig/$1 java -cp $PIG_CLASSPATH org.apache.pig.Main -param inputDir=/user/hadoop/input/$1/event_trace -param outputDir=output/mediumevents_s/pig/$1 mediumevents_avg_mr.pig $HADOOP_HOME/bin/hadoop fs -cat output/mediumevents_s/pig/$1/part-00000