Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (13 sloc) 498 Bytes
#!/bin/sh
HADOOP_HOME="/usr/lib/hadoop"
HADOOP_JAR="`echo $HADOOP_HOME/hadoop-*-core.jar`"
STREAMING_JAR="`echo $HADOOP_HOME/contrib/streaming/hadoop-*-streaming.jar`"
if STREAMING_JAR==""; then
STREAMING_JAR="`echo $HADOOP_HOME/contrib/streaming/hadoop-streaming-*.jar`"
fi
rm -rf classes 2> /dev/null
rm feathers.jar 2> /dev/null
if test "$1" = clean; then exit; fi
mkdir classes
javac -classpath "$HADOOP_JAR:$STREAMING_JAR" -d classes src/*/*.java
jar -cvf feathers.jar -C classes/ .