Skip to content

Commit 07e053b

Browse files
author
Janos Matyas
committed
Merge pull request sequenceiq#44 from pjfanning/master
upgrade to spark 1.6.0
2 parents 25f8c14 + 57c77b9 commit 07e053b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ FROM sequenceiq/hadoop-docker:2.6.0
22
MAINTAINER SequenceIQ
33

44
#support for Hadoop 2.6.0
5-
RUN curl -s http://d3kbcqa49mib13.cloudfront.net/spark-1.5.1-bin-hadoop2.6.tgz | tar -xz -C /usr/local/
6-
RUN cd /usr/local && ln -s spark-1.5.1-bin-hadoop2.6 spark
5+
RUN curl -s http://d3kbcqa49mib13.cloudfront.net/spark-1.6.0-bin-hadoop2.6.tgz | tar -xz -C /usr/local/
6+
RUN cd /usr/local && ln -s spark-1.6.0-bin-hadoop2.6 spark
77
ENV SPARK_HOME /usr/local/spark
88
RUN mkdir $SPARK_HOME/yarn-remote-client
99
ADD yarn-remote-client $SPARK_HOME/yarn-remote-client
1010

11-
RUN $BOOTSTRAP && $HADOOP_PREFIX/bin/hadoop dfsadmin -safemode leave && $HADOOP_PREFIX/bin/hdfs dfs -put $SPARK_HOME-1.5.1-bin-hadoop2.6/lib /spark
11+
RUN $BOOTSTRAP && $HADOOP_PREFIX/bin/hadoop dfsadmin -safemode leave && $HADOOP_PREFIX/bin/hdfs dfs -put $SPARK_HOME-1.6.0-bin-hadoop2.6/lib /spark
1212

1313
ENV YARN_CONF_DIR $HADOOP_PREFIX/etc/hadoop
1414
ENV PATH $PATH:$SPARK_HOME/bin:$HADOOP_PREFIX/bin

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ The base Hadoop Docker image is also available as an official [Docker image](htt
1010

1111
##Pull the image from Docker Repository
1212
```
13-
docker pull sequenceiq/spark:1.5.1
13+
docker pull sequenceiq/spark:1.6.0
1414
```
1515

1616
## Building the image
1717
```
18-
docker build --rm -t sequenceiq/spark:1.5.1 .
18+
docker build --rm -t sequenceiq/spark:1.6.0 .
1919
```
2020

2121
## Running the image
@@ -24,16 +24,16 @@ docker build --rm -t sequenceiq/spark:1.5.1 .
2424
* in your /etc/hosts file add $(boot2docker ip) as host 'sandbox' to make it easier to access your sandbox UI
2525
* open yarn UI ports when running container
2626
```
27-
docker run -it -p 8088:8088 -p 8042:8042 -h sandbox sequenceiq/spark:1.5.1 bash
27+
docker run -it -p 8088:8088 -p 8042:8042 -h sandbox sequenceiq/spark:1.6.0 bash
2828
```
2929
or
3030
```
31-
docker run -d -h sandbox sequenceiq/spark:1.5.1 -d
31+
docker run -d -h sandbox sequenceiq/spark:1.6.0 -d
3232
```
3333

3434
## Versions
3535
```
36-
Hadoop 2.6.0 and Apache Spark v1.5.1 on Centos
36+
Hadoop 2.6.0 and Apache Spark v1.6.0 on Centos
3737
```
3838

3939
## Testing
@@ -71,7 +71,7 @@ spark-submit \
7171
--driver-memory 1g \
7272
--executor-memory 1g \
7373
--executor-cores 1 \
74-
$SPARK_HOME/lib/spark-examples-1.5.1-hadoop2.6.0.jar
74+
$SPARK_HOME/lib/spark-examples-1.6.0-hadoop2.6.0.jar
7575
```
7676

7777
Estimating Pi (yarn-client mode):
@@ -84,5 +84,5 @@ spark-submit \
8484
--driver-memory 1g \
8585
--executor-memory 1g \
8686
--executor-cores 1 \
87-
$SPARK_HOME/lib/spark-examples-1.5.1-hadoop2.6.0.jar
87+
$SPARK_HOME/lib/spark-examples-1.6.0-hadoop2.6.0.jar
8888
```

bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd $HADOOP_PREFIX/share/hadoop/common ; for cp in ${ACP//,/ }; do echo == $cp;
1313
sed s/HOSTNAME/$HOSTNAME/ /usr/local/hadoop/etc/hadoop/core-site.xml.template > /usr/local/hadoop/etc/hadoop/core-site.xml
1414

1515
# setting spark defaults
16-
echo spark.yarn.jar hdfs:///spark/spark-assembly-1.5.1-hadoop2.6.0.jar > $SPARK_HOME/conf/spark-defaults.conf
16+
echo spark.yarn.jar hdfs:///spark/spark-assembly-1.6.0-hadoop2.6.0.jar > $SPARK_HOME/conf/spark-defaults.conf
1717
cp $SPARK_HOME/conf/metrics.properties.template $SPARK_HOME/conf/metrics.properties
1818

1919
service sshd start

0 commit comments

Comments
 (0)