forked from Intel-bigdata/HiBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
118 lines (108 loc) · 4.72 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
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-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/spark/spark-3.0.0/spark-3.0.0-bin-hadoop3.2.tgz
- tar -xzf spark-3.0.0-bin-hadoop3.2.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
- wget https://archive.apache.org/dist/hadoop/core/hadoop-3.2.1/hadoop-3.2.1.tar.gz
- tar -xzf hadoop-3.2.1.tar.gz
- cd ${hibench}
- cp ./travis/spark-env.sh /opt/spark-2.4.0-bin-hadoop2.7/conf/
- cp ./travis/spark-env.sh /opt/spark-3.0.0-bin-hadoop3.2/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/core-site.xml /opt/hadoop-3.2.1/etc/hadoop/
- cp ./travis/hdfs-site.xml /opt/hadoop-3.2.1/etc/hadoop/
- cp ./travis/mapred-site.xml /opt/hadoop-3.2.1/etc/hadoop/
- cp ./travis/yarn-site.xml /opt/hadoop-3.2.1/etc/hadoop/
- cp ./travis/hadoop-env.sh /opt/hadoop-3.2.1/etc/hadoop/
jobs:
include:
- name: build-multi-version
script:
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11 -Dhadoop=2.7 -Dhive=0.14
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11 -Dhadoop=3.0 -Dhive=3.0
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=2.4 -Dscala=2.11 -Dhadoop=3.1 -Dhive=3.0
- mvn clean package -q -Dmaven.javadoc.skip=true -Dspark=3.0 -Dscala=2.12
- name: spark_2.4_hadoop_2.7_micro
before_script:
- . ./travis/export_env_spark_2.4_hadoop_2.7.sh
script:
- cp ./travis/benchmarks_micro.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_2.4_hadoop_2.7.sh
- name: spark_2.4_hadoop_2.7_sql
before_script:
- . ./travis/export_env_spark_2.4_hadoop_2.7.sh
script:
- cp ./travis/benchmarks_sql.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_2.4_hadoop_2.7.sh
- name: spark_2.4_hadoop_2.7_websearch
before_script:
- . ./travis/export_env_spark_2.4_hadoop_2.7.sh
script:
- cp ./travis/benchmarks_websearch.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_2.4_hadoop_2.7.sh
- name: spark_2.4_hadoop_2.7_ml
before_script:
- . ./travis/export_env_spark_2.4_hadoop_2.7.sh
script:
- cp ./travis/benchmarks_ml.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_2.4_hadoop_2.7.sh
- name: spark_2.4_hadoop_2.7_graph
before_script:
- . ./travis/export_env_spark_2.4_hadoop_2.7.sh
script:
- cp ./travis/benchmarks_graph.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_2.4_hadoop_2.7.sh
- name: spark_3.0_hadoop_3.2_micro
before_script:
- . ./travis/export_env_spark_3.0_hadoop_3.2.sh
script:
- cp ./travis/benchmarks_micro.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_3.0_hadoop_3.2.sh
- name: spark_3.0_hadoop_3.2_sql
before_script:
- . ./travis/export_env_spark_3.0_hadoop_3.2.sh
script:
- cp ./travis/benchmarks_sql.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_3.0_hadoop_3.2.sh
- name: spark_3.0_hadoop_3.2_websearch
before_script:
- . ./travis/export_env_spark_3.0_hadoop_3.2.sh
script:
- cp ./travis/benchmarks_websearch.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_3.0_hadoop_3.2.sh
- name: spark_3.0_hadoop_3.2_ml
before_script:
- . ./travis/export_env_spark_3.0_hadoop_3.2.sh
script:
- cp ./travis/benchmarks_ml.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_3.0_hadoop_3.2.sh
- name: spark_3.0_hadoop_3.2_graph
before_script:
- . ./travis/export_env_spark_3.0_hadoop_3.2.sh
script:
- cp ./travis/benchmarks_graph.lst ./conf/benchmarks.lst
- . ./travis/build_and_run_all_spark_3.0_hadoop_3.2.sh