Skip to content

Commit 0a135ae

Browse files
authored
Merge pull request #9 from riptano/DSP-11503
DSP-11503 Upgrade Spark Jobserver for Spark 2.0.2
2 parents c9836a5 + b657934 commit 0a135ae

File tree

204 files changed

+7420
-2227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+7420
-2227
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/target
2+
*/target
3+
**/target
4+
.git
5+
.ensime
6+
.ensime_cache

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ test-reports/
77
.ensime*
88
.idea*
99
.vagrant
10+
*.pyc
1011

1112
# ignore deployment configs
1213
config/*.conf
1314
config/*.sh
15+
config/*.ini
1416
job-server/config/*.conf
1517
job-server/config/*.sh
18+
job-server/config/*.ini
1619
metastore_db/
1720

1821
#ignore generated config
@@ -22,4 +25,4 @@ bin/ec2_example.sh
2225
ec2Cluster/
2326

2427
# don't ignore the ec2 config and sh files
25-
!job-server/config/ec2.sh
28+
!job-server/config/ec2.sh

.travis.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
1-
language: scala
1+
sudo: required
2+
23
env:
34
global:
4-
_JAVA_OPTIONS="-Xmx1500m -XX:MaxPermSize=512m -Dakka.test.timefactor=3"
5-
scala:
6-
- 2.10.6
7-
- 2.11.8
8-
jdk:
9-
- oraclejdk8
10-
- oraclejdk7
5+
- DOCKER_IMAGE="spark-jobserver:ci"
6+
7+
language: go
8+
go:
9+
- 1.7
10+
11+
services:
12+
- docker
13+
14+
cache:
15+
directories:
16+
- docker
17+
18+
before_install:
19+
- go get github.com/tonistiigi/buildcache/cmd/buildcache
20+
21+
install:
22+
- if [ -e docker/latest_image.tar.gz ]; then
23+
docker load -i docker/latest_image.tar.gz;
24+
fi
25+
- if [ -e docker/latest_cache.tar.gz ]; then
26+
docker load -i docker/latest_cache.tar.gz;
27+
fi
28+
- echo "docker/" >> .dockerignore
29+
- docker build -f Dockerfile.test -t $DOCKER_IMAGE .
30+
- docker save $DOCKER_IMAGE | gzip > docker/latest_image.tar.gz
31+
- sudo `which buildcache` save -o docker/latest_cache.tar.gz $DOCKER_IMAGE
32+
- sudo chown $USER docker/latest_cache.tar.gz
33+
34+
script:
35+
- docker run --rm -t -i $DOCKER_IMAGE

Dockerfile.test

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM instructure/java:8
2+
3+
USER root
4+
# install and cache sbt, python
5+
6+
RUN echo 'deb http://dl.bintray.com/sbt/debian /' > /etc/apt/sources.list.d/sbt.list && \
7+
apt-get -qq update && \
8+
apt-get install -y --force-yes python3 python3-pip python-pip sbt=0.13.8 && \
9+
sbt
10+
# running sbt downloads some of its internals, speed up sebsequent sbt runs
11+
12+
WORKDIR /usr/src/app/
13+
14+
# install other ci deps
15+
COPY ci ci
16+
RUN ci/install-python-dependencies.sh && \
17+
ci/install-spark.sh
18+
19+
# add sbt and cache deps
20+
COPY project project
21+
COPY build.sbt .
22+
RUN sbt update
23+
24+
# add the rest of the code
25+
COPY . .
26+
27+
ENV SPARK_HOME /tmp/spark-2.0.2-bin-hadoop2.7
28+
ENV JAVA_OPTIONS "-Xmx1500m -XX:MaxPermSize=512m -Dakka.test.timefactor=3"
29+
30+
CMD ["/usr/src/app/run_tests.sh"]

README.md

Lines changed: 114 additions & 54 deletions
Large diffs are not rendered by default.

akka-app/src/ooyala.common.akka/ActorMetrics.scala renamed to akka-app/src/main/scala/spark/jobserver/common/akka/ActorMetrics.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
package ooyala.common.akka
1+
package spark.jobserver.common.akka
22

33
import java.util.concurrent.TimeUnit
44

5-
import akka.actor.Actor
65
import com.yammer.metrics.Metrics
76

87
/**

akka-app/src/ooyala.common.akka/ActorStack.scala renamed to akka-app/src/main/scala/spark/jobserver/common/akka/ActorStack.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ooyala.common.akka
1+
package spark.jobserver.common.akka
22

33
import akka.actor.Actor
44

akka-app/src/ooyala.common.akka/AkkaTestUtils.scala renamed to akka-app/src/main/scala/spark/jobserver/common/akka/AkkaTestUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ooyala.common.akka
1+
package spark.jobserver.common.akka
22

33
import akka.actor.{ActorSystem, ActorRef}
44
import akka.pattern.gracefulStop

akka-app/src/ooyala.common.akka/InstrumentedActor.scala renamed to akka-app/src/main/scala/spark/jobserver/common/akka/InstrumentedActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ooyala.common.akka
1+
package spark.jobserver.common.akka
22

33
import akka.actor.Actor
44

akka-app/src/ooyala.common.akka/Slf4jLogging.scala renamed to akka-app/src/main/scala/spark/jobserver/common/akka/Slf4jLogging.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package ooyala.common.akka
1+
package spark.jobserver.common.akka
22

3-
import akka.actor.Actor
43
import org.slf4j.LoggerFactory
54

65
/**

0 commit comments

Comments
 (0)