-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for deploying PySpark models (#196)
* saving pyspark looks like it works * more work on pyspark container. untested * updated docker files * fixed imports * initialization of pyspark docker container works * pyspark deploy integration tests pass * got mllib tests passing again * pyspark deploy is working * download spark if not present * format code * format code * fixed name of pyspark dockerfile * cleanup * moved failing clipper_manager test to end * added data dependence * format code * Fixed tests * addressed review comments. * fix labels issue * fixed deploy_pyspark labels * fixed label arg order in deploy_pyspark_model
- Loading branch information
1 parent
fc7e2be
commit 946fc1d
Showing
14 changed files
with
848 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM clipper/py-rpc:latest | ||
|
||
MAINTAINER Dan Crankshaw <dscrankshaw@gmail.com> | ||
|
||
COPY containers/python/python_container_conda_deps.txt /lib/ | ||
|
||
RUN curl -o /spark.tgz https://d3kbcqa49mib13.cloudfront.net/spark-2.1.1-bin-hadoop2.7.tgz \ | ||
&& cd / && tar zxf /spark.tgz && mv /spark-2.1.1-bin-hadoop2.7 /spark \ | ||
&& echo deb http://ftp.de.debian.org/debian jessie-backports main >> /etc/apt/sources.list \ | ||
&& apt-get update --fix-missing \ | ||
&& apt-get install -yqq -t jessie-backports openjdk-8-jdk \ | ||
&& conda install -y --file /lib/python_container_conda_deps.txt \ | ||
&& pip install findspark | ||
|
||
COPY containers/python/pyspark_container.py containers/python/pyspark_container_entry.sh /container/ | ||
COPY clipper_admin/ /lib/clipper_admin/ | ||
|
||
ENV SPARK_HOME="/spark" | ||
|
||
CMD ["/container/pyspark_container_entry.sh"] | ||
|
||
# vim: set filetype=dockerfile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.