-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM sequenceiq/hadoop-docker:2.6.0 | ||
MAINTAINER SequenceIQ | ||
|
||
RUN curl -s http://d3kbcqa49mib13.cloudfront.net/spark-1.1.1-bin-hadoop2.4.tgz | tar -xz -C /usr/local/ | ||
RUN cd /usr/local && ln -s spark-1.1.1-bin-hadoop2.4 spark | ||
RUN curl -s http://d3kbcqa49mib13.cloudfront.net/spark-1.2.0-bin-hadoop2.4.tgz | tar -xz -C /usr/local/ | ||
RUN cd /usr/local && ln -s spark-1.2.0-bin-hadoop2.4 spark | ||
ENV SPARK_HOME /usr/local/spark | ||
RUN mkdir $SPARK_HOME/yarn-remote-client | ||
ADD yarn-remote-client $SPARK_HOME/yarn-remote-client | ||
|
||
RUN $BOOTSTRAP && $HADOOP_PREFIX/bin/hadoop dfsadmin -safemode leave && $HADOOP_PREFIX/bin/hdfs dfs -put $SPARK_HOME-1.1.1-bin-hadoop2.4/lib /spark | ||
RUN $BOOTSTRAP && $HADOOP_PREFIX/bin/hadoop dfsadmin -safemode leave && $HADOOP_PREFIX/bin/hdfs dfs -put $SPARK_HOME-1.2.0-bin-hadoop2.4/lib /spark | ||
|
||
ENV YARN_CONF_DIR $HADOOP_PREFIX/etc/hadoop | ||
ENV SPARK_JAR hdfs:///spark/spark-assembly-1.1.1-hadoop2.4.0.jar | ||
ENV SPARK_JAR hdfs:///spark/spark-assembly-1.2.0-hadoop2.4.0.jar | ||
ENV PATH $PATH:$SPARK_HOME/bin:$HADOOP_PREFIX/bin | ||
|
||
CMD ["/etc/bootstrap.sh", "-d"] |