Comments (4)
I had the same problem and it turned out to be caused by download-kafka.sh having Windows style EOL (CRLF instead of LF) when cloned. If you are running on a Windows machine, make sure that you configure git with core.autocrlf false.
git config --global core.autocrlf false
from kafka-docker.
Looks like the problem with parsing a mirror list in download-kafka.sh.
For a temp solution you can comment out everything in download-kafka.sh
and add
wget -q http://mirrors.advancedhosters.com/apache//kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
complete snippet:
#!/bin/sh
#mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | sed -rn 's/.*"preferred":.*"(.*)"/\1/p')
#url="${mirror}kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
#wget -q "${url}" -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
wget -q http://mirrors.advancedhosters.com/apache//kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
from kafka-docker.
There are two issues with this script running on OSX:
-
the OSX version of sed is not command-line compatible with gnu sed. The '-r' used by gnu needs to be '-E' for OSX.
-
The pattern pulling "preferred" from the mirror host is returning an extra '}' character at the end of the match on both gnu and OSX sed
Easiest solution is to install jq, and replace the sed command with jq --raw-output ".preferred"
from kafka-docker.
this has been fixed in #49
from kafka-docker.
Related Issues (20)
- Deprecation of "openjdk:11-jre-slim" HOT 2
- $
- Kafka-connect HOT 3
- Log4J Vulnerability HOT 1
- Kafka container restart every day at 00.02
- how to change kafka log path HOT 3
- javax.net.ssl.SSLHandshakeException : Kafka Composer
- New docker images HOT 1
- Getting an error in zookeeper HOT 2
- problem:Tried to send a message to a replica that is not the leader,Your metadata is out of date
- How to enable JMX feature in docker-compose.yml and test it HOT 1
- Error failed to change state for partition HOT 1
- Problem with sending messages from local host to kafka broker in container
- Question: I have over 400 topics that created in three kafka brokers, and now only one of them running HOT 1
- [Maintainability] is this repository still maintained? HOT 1
- Why delete the docker image wurstmeister/kafka? HOT 2
- The container for Kafka and zookeeper seems to be deleted from docker hub HOT 5
- How to build and obtain specific version kafka docker images HOT 1
- Failed to acquire lock on file .lock in /kafka/kafka-data.
- [KafkaServer id=2] Fatal error during KafkaServer shutdown. (kafka.server.KafkaServer)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-docker.