Open carlosalvidrez opened 4 years ago
The base image (hadoop-2.7.4) is based on debian 8, which is waaaaay too old
https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository
+1
Though, it looks like in the latest Dockerfile
they have updated FROM debian:9
. However the pre-built hosted images in the DockerHub registry are not using this.
So, what I will probably do, is clone the docker-hadoop
repo, use it to build each hadoop version I want locally. And then these will be build with Debian 9. Then use this repo again to continue building Hive images based on these updated local images.
Got this while building the docker image... everything looks good up to this point...
`Ign http://deb.debian.org jessie InRelease Get:1 http://deb.debian.org jessie-updates InRelease [16.3 kB] Ign http://ftp.debian.org jessie-backports InRelease Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB] Ign http://ftp.debian.org jessie-backports Release.gpg Get:3 http://deb.debian.org jessie Release.gpg [1652 B] Ign http://ftp.debian.org jessie-backports Release Get:4 http://deb.debian.org jessie Release [77.3 kB] Err http://ftp.debian.org jessie-backports/main amd64 Packages
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Err http://ftp.debian.org jessie-backports/main amd64 Packages
Err http://ftp.debian.org jessie-backports/main amd64 Packages 404 Not Found Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [20 B] Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB] Get:7 http://security.debian.org jessie/updates/main amd64 Packages [932 kB] Fetched 10.2 MB in 12s (788 kB/s) W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead. The command '/bin/sh -c apt-get update && apt-get install -y wget procps && wget https://archive.apache.org/dist/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz && tar -xzvf apache-hive-$HIVE_VERSION-bin.tar.gz && mv apache-hive-$HIVE_VERSION-bin hive && wget https://jdbc.postgresql.org/download/postgresql-9.4.1212.jar -O $HIVE_HOME/lib/postgresql-jdbc.jar && rm apache-hive-$HIVE_VERSION-bin.tar.gz && apt-get --purge remove -y wget && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100`