forked from Intel-bigdata/HiBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
189 lines (179 loc) · 7.9 KB
/
.travis.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
sudo: required
dist: xenial
language: java
before_install:
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -n '/^127.0.0.1/!p' /etc/hosts | sed -e '1 i\127.0.0.1 localhost' -e "1 i\127.0.0.1 $(hostname | cut -c1-63)" | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
- cat /proc/cpuinfo | grep cores | wc -l
- free -h
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
install:
- hibench=$(pwd)
- echo ${hibench}
- cd /opt/
- wget https://archive.apache.org/dist/spark/spark-3.0.0/spark-3.0.0-bin-hadoop2.7.tgz
- tar -xzf spark-3.0.0-bin-hadoop2.7.tgz
- wget https://archive.apache.org/dist/spark/spark-2.4.0/spark-2.4.0-bin-hadoop2.7.tgz
- tar -xzf spark-2.4.0-bin-hadoop2.7.tgz
- wget https://archive.apache.org/dist/hadoop/core/hadoop-2.7.7/hadoop-2.7.7.tar.gz
- tar -xzf hadoop-2.7.7.tar.gz
- cd ${hibench}
- cp ./travis/spark-env.sh /opt/spark-3.0.0-bin-hadoop2.7/conf/
- cp ./travis/spark-env.sh /opt/spark-2.4.0-bin-hadoop2.7/conf/
- cp ./travis/core-site.xml /opt/hadoop-2.7.7/etc/hadoop/
- cp ./travis/hdfs-site.xml /opt/hadoop-2.7.7/etc/hadoop/
- cp ./travis/mapred-site.xml /opt/hadoop-2.7.7/etc/hadoop/
- cp ./travis/yarn-site.xml /opt/hadoop-2.7.7/etc/hadoop/
- cp ./travis/hadoop-env.sh /opt/hadoop-2.7.7/etc/hadoop/
- cp ./travis/hibench.conf ./conf/
- cp ./travis/hadoop.conf ./conf/
jobs:
include:
- name: hibench-build-multi-version
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.0 -Dscala=2.11
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.1 -Dscala=2.11
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.2 -Dscala=2.11
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.3 -Dscala=2.11
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- name: hibench-spark-3.0_micro
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- cp ./travis/benchmarks_micro.lst ./conf/benchmarks.lst
- cp ./travis/spark_3.0.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-3.0_sql
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- cp ./travis/benchmarks_sql.lst ./conf/benchmarks.lst
- cp ./travis/spark_3.0.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-3.0_websearch
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- cp ./travis/benchmarks_websearch.lst ./conf/benchmarks.lst
- cp ./travis/spark_3.0.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-3.0_ml
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- cp ./travis/benchmarks_ml.lst ./conf//benchmarks.lst
- cp ./travis/spark_3.0.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-3.0_graph
before_script:
- "export SPARK_HOME=/opt/spark-3.0.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark3.0"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- cp ./travis/benchmarks_graph.lst ./conf/benchmarks.lst
- cp ./travis/spark_3.0.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-2.4_micro
before_script:
- "export SPARK_HOME=/opt/spark-2.4.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark2.4"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- cp ./travis/benchmarks_micro.lst ./conf/benchmarks.lst
- cp ./travis/spark_2.4.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-2.4_sql
before_script:
- "export SPARK_HOME=/opt/spark-2.4.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark2.4"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- cp ./travis/benchmarks_sql.lst ./conf/benchmarks.lst
- cp ./travis/spark_2.4.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-2.4_websearch
before_script:
- "export SPARK_HOME=/opt/spark-2.4.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark2.4"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- cp ./travis/benchmarks_websearch.lst ./conf/benchmarks.lst
- cp ./travis/spark_2.4.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-2.4_ml
before_script:
- "export SPARK_HOME=/opt/spark-2.4.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark2.4"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- cp ./travis/benchmarks_ml.lst ./conf/benchmarks.lst
- cp ./travis/spark_2.4.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh
- name: hibench-spark-2.4_graph
before_script:
- "export SPARK_HOME=/opt/spark-2.4.0-bin-hadoop2.7"
- "export SPARK_VERSION=spark2.4"
- "export JAVA_OPTS=-Xmx512m"
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11
- cp ./travis/benchmarks_graph.lst ./conf/benchmarks.lst
- cp ./travis/spark_2.4.conf ./conf/spark.conf
- sudo -E ./travis/configssh.sh
- sudo -E ./travis/restart_hadoop_spark.sh
- /opt/hadoop-2.7.7/bin/yarn node -list 2
- sudo -E ./bin/run_all.sh