File tree Expand file tree Collapse file tree 5 files changed +65
-3
lines changed
.zuul/playbooks/spark-build Expand file tree Collapse file tree 5 files changed +65
-3
lines changed Original file line number Diff line number Diff line change
1
+ - project :
2
+ name : theopenlab/spark
3
+ check :
4
+ jobs :
5
+ - spark-build-and-python-test-arm64
6
+
7
+ - job :
8
+ name : spark-build-and-python-test-arm64
9
+ parent : init-test
10
+ description : |
11
+ The spark build and test other modules in openlab cluster.
12
+ run : .zuul/playbooks/spark-build/run_python_tests.yaml
13
+ nodeset : ubuntu-xenial-arm64
14
+ timeout : 86400
Original file line number Diff line number Diff line change
1
+ - hosts : all
2
+ tasks :
3
+ - name : Build spark master using mvn with hadoop 2.7
4
+ shell :
5
+ cmd : |
6
+ set -exo pipefail
7
+ sudo apt-get update -y
8
+
9
+ # Install java
10
+ sudo apt-get install default-jre -y
11
+ sudo apt-get install default-jdk -y
12
+ java_home=$(dirname $(dirname $(update-alternatives --list javac)))
13
+ echo "export JAVA_HOME=${java_home}" >> ~/.profile
14
+ echo "export PATH=${java_home}/bin:$PATH" >> ~/.profile
15
+ source ~/.profile
16
+
17
+ # Install maven
18
+ wget http://www.us.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
19
+ tar -xvf apache-maven-3.6.2-bin.tar.gz
20
+ export PATH=$PWD/apache-maven-3.6.2/bin:$PATH
21
+
22
+ # fix kafka authfail tests
23
+ sudo sed -i "s|127.0.0.1 $(hostname) localhost|127.0.0.1 localhost $(hostname)|" /etc/hosts
24
+
25
+ cd {{ ansible_user_dir }}/{{ zuul.project.src_dir }}
26
+
27
+ ./build/mvn install package -DskipTests -Phadoop-2.7 -Pyarn -Phive -Phive-thriftserver -Pkinesis-asl -Pmesos
28
+
29
+ # use leveldbjni arm supporting jar
30
+ wget https://repo1.maven.org/maven2/org/openlabtesting/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.jar
31
+ mvn install:install-file -DgroupId=org.fusesource.leveldbjni -DartifactId=leveldbjni-all -Dversion=1.8 -Dpackaging=jar -Dfile=leveldbjni-all-1.8.jar
32
+
33
+ # install packages needed
34
+ pip install converage numpy
35
+ # run python tests
36
+ python/run-tests --python-executables=python3.5
37
+
38
+ chdir : ' /home/zuul/src'
39
+ executable : /bin/bash
40
+ environment : ' {{ global_env }}'
Original file line number Diff line number Diff line change 45
45
<artifactId >guava</artifactId >
46
46
</dependency >
47
47
<dependency >
48
- <groupId >org.fusesource. leveldbjni</groupId >
48
+ <groupId >${ leveldbjni.group} </groupId >
49
49
<artifactId >leveldbjni-all</artifactId >
50
+ <version >1.8</version >
50
51
</dependency >
51
52
<dependency >
52
53
<groupId >com.fasterxml.jackson.core</groupId >
Original file line number Diff line number Diff line change 52
52
</dependency >
53
53
54
54
<dependency >
55
- <groupId >org.fusesource. leveldbjni</groupId >
55
+ <groupId >${ leveldbjni.group} </groupId >
56
56
<artifactId >leveldbjni-all</artifactId >
57
57
<version >1.8</version >
58
58
</dependency >
Original file line number Diff line number Diff line change 241
241
<spark .test.home>${session.executionRootDirectory} </spark .test.home>
242
242
243
243
<CodeCacheSize >1g</CodeCacheSize >
244
+ <leveldbjni .group>org.fusesource.leveldbjni</leveldbjni .group>
244
245
</properties >
245
246
<repositories >
246
247
<repository >
527
528
<version >${commons.httpcore.version} </version >
528
529
</dependency >
529
530
<dependency >
530
- <groupId >org.fusesource. leveldbjni</groupId >
531
+ <groupId >${ leveldbjni.group} </groupId >
531
532
<artifactId >leveldbjni-all</artifactId >
532
533
<version >1.8</version >
533
534
</dependency >
3127
3128
<profile >
3128
3129
<id >sparkr</id >
3129
3130
</profile >
3131
+ <!--profile>
3132
+ <id>aarch64</id>
3133
+ <properties>
3134
+ <leveldbjni.group>org.openlabtesting.leveldbjni</leveldbjni.group>
3135
+ </properties>
3136
+ </profile-->
3130
3137
</profiles >
3131
3138
</project >
You can’t perform that action at this time.
0 commit comments