-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·28 lines (25 loc) · 740 Bytes
/
run.sh
File metadata and controls
executable file
·28 lines (25 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
if [ ! -d "storm-0.8.1" ]; then
echo "Downloading storm"
curl https://dl.dropbox.com/u/133901206/storm-0.8.1.zip > /tmp/storm.zip
echo "Download done"
if zipinfo /tmp/storm.zip > /dev/null; then
echo "Unziping storm"
unzip /tmp/storm.zip > /dev/null
echo "Unzip done"
rm /tmp/storm.zip
else
rm /tmp/storm.zip
exit
fi
fi
if [ -d "results" ]; then
mv "results" "results("$(date +%F-%T)")"
fi
mkdir results
rm -rf target
echo "Compiling"
nohup mvn package > results/maven.log 2>&1
cp target/*-jar-with-dependencies.jar results/uberjar.jar
rm -rf target
echo "Compiled. Trying to run"
storm-0.8.1/bin/storm jar results/uberjar.jar distributedRedditAnalyser.Main $@