-
Notifications
You must be signed in to change notification settings - Fork 6
/
runLocal.sh
executable file
·61 lines (49 loc) · 1.38 KB
/
runLocal.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
set -x;
set -e;
DRIVER=$1
DURATION=$2
MACHINES=$3
PROCS=$4
THREADS=$5
function usage {
echo "Usage: $0 phx|hs2 duration numMachines numProcs numThreads"
exit 1
}
if [ X"$DURATION" = "X" ]; then
usage
fi
if [ X"$MACHINES" = "X" ]; then
usage
fi
if [ X"$PROCS" = "X" ]; then
usage
fi
if [ X"$THREADS" = "X" ]; then
usage
fi
if [ "$MACHINES" -ne "1" ] ; then
echo "only 1 machine supported."
exit 1
fi
JVM_ARGS="-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=defaultrecording=true,dumponexit=true,compress=true"
HIVE_HOME=/Users/ndimiduk/phx_perf/apache-hive-1.2.0-SNAPSHOT-bin
PHX_TEST=../jmeter_tests/Point_NoJoin_NoGroup_Pri1_phx.jmx
HS2_TEST=../jmeter_tests/Point_NoJoin_NoGroup_Pri1_hive.jmx
PHX_CP=../phoenix-4.2.2-client.jar
HS2_CP=/usr/local/Cellar/hadoop/2.6.0/libexec/share/hadoop/common/hadoop-common-2.6.0.jar:${HIVE_HOME}/lib/hive-jdbc-1.2.0-SNAPSHOT-standalone.jar
TEST="X"
CP="X"
if [ "$DRIVER" = "phx" ] ; then
TEST=$PHX_TEST
CP=$PHX_CP
elif [ "$DRIVER" = "hs2" ] ; then
TEST=$HS2_TEST
CP=$HS2_CP
else
echo "unrecognized driver $DRIVER"
usage
fi
seq ${PROCS} | parallel -j${PROCS} -n0 ./jmeter.sh {#} ${CP} ${TEST} ${DURATION} ${THREADS}
~/phx_perf/pyenv/bin/python runner/analyze.py > "analysis_${DRIVER}_D${DURATION}xM${MACHINES}xP${PROCS}xT${THREADS}.log"
seq ${PROCS} | parallel -n0 rm -r {#}