Question

I can't extract apache kafka

Connected Tutorial
This question is a follow-up to this tutorial:

Hello,

I can’t extract apache kafka :

kafka@ubuntu-ThinkPad-X250:~/Downloads$ tar -xvzf ~/Downloads/kafka.tgz --strip 1

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Thank you in advance to help myself fully run apache kafka,

Regards.

Azaretdodo.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

you have both right i have success to install apache kafka i have just one problem my password for kafka doesn’t work !

regards.

Azaretdodo.

Hi there,

The link to the Kafka tar file should be the following:

 curl "https://downloads.apache.org/kafka/2.6.3/kafka_2.13-2.6.3.tgz" -o ~/Downloads/kafka.tgz

Let me know how it goes. Best, Bobby

Hello, @Azaretdodo

Can you confirm that the kafka.tgz was download without any errors using the curl command?

  1. curl "https://downloads.apache.org/kafka/2.6.2/kafka_2.13-2.6.2.tgz" -o ~/Downloads/kafka.tgz

You can also use wget instead of curl just as a test option and make sure to check the output of the command and see if the file is downloaded in the correct format when using wget the Length in the download output should be:

[application/x-gzip]

Hope that this helps! Regards, Alex