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

Error When Building Kafka Docker Image #8

Closed
joseq-terawe opened this issue Jun 17, 2019 · 3 comments
Closed

Error When Building Kafka Docker Image #8

joseq-terawe opened this issue Jun 17, 2019 · 3 comments

Comments

@joseq-terawe
Copy link

joseq-terawe commented Jun 17, 2019

When trying to build "\azure_kafka_aks-master\azure_kafka_aks-master\docker\kafka" I get an error:
Step 11/13 : RUN tar -xzvf /opt/kafka/kafka_$SCALA_VERSION-$KAFKA_VERSION.tgz --strip-components=1
---> Running in 65afbbffaa3b
gzip: invalid magic
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c tar -xzvf /opt/kafka/kafka_$SCALA_VERSION-$KAFKA_VERSION.tgz --strip-components=1' returned a non-zero code: 2

seems like version 1.0.0 is corrupted somehow. I changed to version 2.2.1 but now fails with this error

Step 13/13 : COPY kafka_config_files/server.properties /opt/kafka/config/ && kafka_config_files/log4j.properties /opt/kafka/config/
COPY failed: stat /var/lib/docker/tmp/docker-builder922549275/opt/kafka/config: no such file or directory

@Ycallaer
Copy link
Owner

Had a quick look, seems the distribution of kafka 1.1.0 is no longer available from https://www-eu.apache.org/dist/kafka/.
This results in a file being downloaded which is basically an empty file, this is why the command fails.
Quickest fix would be to upgrade the package version to a version that is supported from the link.

Let me have a look if I can find the original distribution.

@Ycallaer
Copy link
Owner

Issue has been fixed and pushed to master branch

@joseq-terawe
Copy link
Author

joseq-terawe commented Jun 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants