Skip to content

Commit 1cbe9d3

Browse files
author
astroshim
committed
fix spark version and mesos
1 parent 2b821b4 commit 1cbe9d3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

scripts/docker/spark-cluster-managers/spark_mesos/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# limitations under the License.
1515
FROM centos:centos6
1616

17-
ENV SPARK_PROFILE 1.6
18-
ENV SPARK_VERSION 1.6.2
17+
ENV SPARK_PROFILE 2.0
18+
ENV SPARK_VERSION 2.0.0
1919
ENV HADOOP_PROFILE 2.3
2020
ENV HADOOP_VERSION 2.3.0
2121

@@ -27,6 +27,9 @@ RUN yum install -y \
2727
wget \
2828
tar \
2929
curl \
30+
svn \
31+
cyrus-sasl-md5 \
32+
libevent2-devel \
3033
&& \
3134
yum clean all
3235

@@ -39,7 +42,7 @@ ENV JAVA_HOME /usr/lib/jvm/java
3942
ENV PATH $PATH:$JAVA_HOME/bin
4043

4144
# install spark
42-
RUN curl -s http://apache.mirror.cdnetworks.com/spark/spark-$SPARK_VERSION/spark-$SPARK_VERSION-bin-hadoop$HADOOP_PROFILE.tgz | tar -xz -C /usr/local/
45+
RUN curl -s http://www.apache.org/dist/spark/spark-$SPARK_VERSION/spark-$SPARK_VERSION-bin-hadoop$HADOOP_PROFILE.tgz | tar -xz -C /usr/local/
4346
RUN cd /usr/local && ln -s spark-$SPARK_VERSION-bin-hadoop$HADOOP_PROFILE spark
4447

4548
# update boot script
@@ -48,8 +51,8 @@ RUN chown root.root /etc/entrypoint.sh
4851
RUN chmod 700 /etc/entrypoint.sh
4952

5053
# install mesos
51-
RUN rpm -Uvh http://repos.mesosphere.com/el/6/noarch/RPMS/mesosphere-el-repo-6-2.noarch.rpm
52-
RUN yum -y install mesos
54+
RUN wget http://repos.mesosphere.com/el/6/x86_64/RPMS/mesos-1.0.0-2.0.89.centos65.x86_64.rpm
55+
RUN rpm -Uvh mesos-1.0.0-2.0.89.centos65.x86_64.rpm
5356

5457
#spark
5558
EXPOSE 8080 7077 7072 8081 8082

scripts/docker/spark-cluster-managers/spark_mesos/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export SPARK_MASTER_PORT=7077
1919
export SPARK_MASTER_WEBUI_PORT=8080
2020
export SPARK_WORKER_PORT=8888
2121
export SPARK_WORKER_WEBUI_PORT=8081
22+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/amd64/server/
2223

2324
# spark configuration
2425
cp $SPARK_HOME/conf/spark-env.sh.template $SPARK_HOME/conf/spark-env.sh

0 commit comments

Comments
 (0)