You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:11:36 UTC
[GitHub] [hadoop] GauthamBanasandra commented on a change in pull request #3349: build 2.10.x with docker only.
GauthamBanasandra commented on a change in pull request #3349:
URL: https://github.com/apache/hadoop/pull/3349#discussion_r698981869
##########
File path: dev-support/docker/Dockerfile
##########
@@ -18,234 +17,80 @@
# Dockerfile for installing the necessary dependencies for building Hadoop.
# See BUILDING.txt.
-FROM ubuntu:xenial
+FROM centos:7
Review comment:
We've been using Ubuntu as the default build environment. May I know why you would want to use Centos 7 instead of Ubuntu Xenial?
##########
File path: dev-support/docker/Dockerfile
##########
@@ -18,234 +17,80 @@
# Dockerfile for installing the necessary dependencies for building Hadoop.
# See BUILDING.txt.
-FROM ubuntu:xenial
+FROM centos:7
Review comment:
That's because Java 7 isn't there in the Ubuntu Xenial toolchain. Have you tried installing the Java 7 by downloading its tarball? Maybe this'll help - https://linuxconfig.org/oracle-java-jdk-7-on-ubuntu-linux-source-or-rpm-installation
I would advise against changing the base image to Centos 7 if this is the only reason. Here are my suggestions -
1. If you still want to use Centos 7, I would suggest that you create a separate Dockerfile for it (like Dockerfile_centos_7) and leave the original Dockerfile as it is.
2. Or, just install Java 7 from the tarball in Dockerfile.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org