Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade hadoop to 2.8 for docker setup #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions infra/recipes/docker-compose/common/hadoop/hadoop.env
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ MAPRED_CONF_mapreduce_map_memory_mb=4096
MAPRED_CONF_mapreduce_reduce_memory_mb=8192
MAPRED_CONF_mapreduce_map_java_opts=-Xmx3072m
MAPRED_CONF_mapreduce_reduce_java_opts=-Xmx6144m
MAPRED_CONF_yarn_app_mapreduce_am_env=HADOOP_MAPRED_HOME=/opt/hadoop-3.2.1/
MAPRED_CONF_mapreduce_map_env=HADOOP_MAPRED_HOME=/opt/hadoop-3.2.1/
MAPRED_CONF_mapreduce_reduce_env=HADOOP_MAPRED_HOME=/opt/hadoop-3.2.1/
MAPRED_CONF_yarn_app_mapreduce_am_env=HADOOP_MAPRED_HOME=/opt/hadoop-2.8.0/
MAPRED_CONF_mapreduce_map_env=HADOOP_MAPRED_HOME=/opt/hadoop-2.8.0/
MAPRED_CONF_mapreduce_reduce_env=HADOOP_MAPRED_HOME=/opt/hadoop-2.8.0/
4 changes: 2 additions & 2 deletions infra/recipes/docker-compose/common/hdfs-services.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.3"
services:
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
image: bde2020/hadoop-namenode:1.2.0-hadoop2.8-java8
restart: always
ports:
- 9870:9870
Expand All @@ -12,7 +12,7 @@ services:
- hadoop/hadoop.env

datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
image: bde2020/hadoop-datanode:1.2.0-hadoop2.8-java8
restart: always
environment:
SERVICE_PRECONDITION: "namenode:9870"
Expand Down
6 changes: 3 additions & 3 deletions infra/recipes/docker-compose/common/spark-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
spark-master:
build:
context: ../../../../
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop3.2.dockerfile
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop2.8.dockerfile
ports:
- 9001:8080
- 7077:7077
Expand All @@ -17,7 +17,7 @@ services:
spark-worker-a:
build:
context: ../../../../
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop3.2.dockerfile
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop2.8.dockerfile
ports:
- 9002:8080
- 7000:7000
Expand All @@ -34,7 +34,7 @@ services:
spark-livy:
build:
context: ../../../../
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop3.2.dockerfile
dockerfile: infra/recipes/docker-compose/common/spark/spark-base-hadoop2.8.dockerfile
ports:
- 9003:8998
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index d2e535a..2a3718f 100644
<properties>
<asynchttpclient.version>2.10.1</asynchttpclient.version>
- <hadoop.version>2.7.3</hadoop.version>
+ <hadoop.version>3.2.1</hadoop.version>
+ <hadoop.version>2.8.0</hadoop.version>
<hadoop.scope>compile</hadoop.scope>
<spark.scala-2.11.version>2.4.5</spark.scala-2.11.version>
- <spark.scala-2.12.version>2.4.5</spark.scala-2.12.version>
Expand Down Expand Up @@ -51,10 +51,10 @@ index d2e535a..2a3718f 100644
<spark.home>${execution.root}/dev/spark</spark.home>
<spark.bin.download.url>
- https://archive.apache.org/dist/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz
+ https://archive.apache.org/dist/spark/spark-3.1.2/spark-3.1.2-bin-hadoop3.2.tgz
+ https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop2.7.tgz
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only 2.7 is available

</spark.bin.download.url>
- <spark.bin.name>spark-2.4.5-bin-hadoop2.7</spark.bin.name>
+ <spark.bin.name>spark-3.1.2-bin-hadoop3.3</spark.bin.name>
+ <spark.bin.name>spark-3.1.1-bin-hadoop2.7</spark.bin.name>
<!-- used for testing, NCSARequestLog use it for access log -->
<livy.log.dir>${basedir}/target</livy.log.dir>

Expand All @@ -80,7 +80,7 @@ index d2e535a..2a3718f 100644
</activation>
<properties>
- <spark.scala-2.12.version>3.0.0</spark.scala-2.12.version>
+ <spark.scala-2.12.version>3.1.2</spark.scala-2.12.version>
+ <spark.scala-2.12.version>3.1.1</spark.scala-2.12.version>
<spark.scala-2.11.version>2.4.5</spark.scala-2.11.version>
- <spark.version>${spark.scala-2.11.version}</spark.version>
+ <spark.version>${spark.scala-2.12.version}</spark.version>
Expand All @@ -96,10 +96,10 @@ index d2e535a..2a3718f 100644
+ <json4s.version>${json4s.spark-2.12.version}</json4s.version>
<spark.bin.download.url>
- https://archive.apache.org/dist/spark/spark-3.0.0/spark-3.0.0-bin-hadoop2.7.tgz
+ https://archive.apache.org/dist/spark/spark-3.1.2/spark-3.1.2-bin-hadoop3.2.tgz
+ https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1-bin-hadoop2.7.tgz
</spark.bin.download.url>
- <spark.bin.name>spark-3.0.0-bin-hadoop2.7</spark.bin.name>
+ <spark.bin.name>spark-3.1.1-bin-hadoop3.2</spark.bin.name>
+ <spark.bin.name>spark-3.1.1-bin-hadoop2.7</spark.bin.name>
</properties>
</profile>

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN update-alternatives --install "/usr/bin/python" "python" "$(which python3)"
ENV SPARK_VERSION=3.1.1 \
LIVY_VERSION=0.8.0-incubating-SNAPSHOT \
LIVY_HOME=/opt/livy \
HADOOP_VERSION=3.2 \
HADOOP_VERSION=2.7 \
SPARK_HOME=/opt/spark \
MAVEN_VERSION=3.9.4 \
PYTHONHASHSEED=1
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN git clone https://github.com/apache/incubator-livy \
&& rm -rf "/incubator-livy"


FROM bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-namenode:1.2.0-hadoop2.8-java8

ENV LIVY_HOME=/opt/livy \
SPARK_HOME=/opt/spark
Expand All @@ -54,7 +54,7 @@ COPY --from=builder /opt/spark /opt/spark

WORKDIR $SPARK_HOME

ENV HADOOP_HOME=/opt/hadoop-3.2.1
ENV HADOOP_HOME=/opt/hadoop-2.8.0
ENV HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
ENV SPARK_MASTER_PORT=7077 \
SPARK_MASTER_WEBUI_PORT=8080 \
Expand Down
Loading