-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base
image can not be built.
#148
Comments
Hey! Got the same problem, the base image cannot be built using As a workaround, I did some changes in the Makefile and pulled the base image manually. Here's what I did: In
current_branch := 2.0.0-hadoop3.2.1-java8
#docker build -t bde2020/hadoop-base:$(current_branch) ./base Then, run Finally, run the following docker command to pull a working base image:
|
That's because debian 9 (stretch) is not maintained anymore. You can update the image to You also need to use openjdk-11 instead since openjdk-8 is not in the debian packages list anymore. Additonally, you need to use All in all, here are the changes: FROM debian:bullseye-slim
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openjdk-11-jdk \
net-tools \
curl \
netcat \
gnupg \
libsnappy-dev \
&& rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
...
ENV HADOOP_URL https://archive.apache.org/dist/hadoop/common/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz Anyhow, I did fork this repo since I need it for a small lab demo. The setup is more streamlined there and is as easy as running # Build the cluster
make build
# Run the cluster
make up
# Get a shell into the hadoop cluster
make shell |
When I try building base hadoop image, I get errors from
apt
in debian:Base image needs to be changed from
debian
, or something should be done with debian repositories.The text was updated successfully, but these errors were encountered: