You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
First off let me say thank you for this great image!
A few days ago I was running the image and it was working well.
Lately, though, I've been trying to follow the most basic steps (as listed in the Run section at dockerhub) and it's been erroring with
root@2995acf13535:/opt/kafka_2.11-0.8.2.1/bin# ./kafka-console-producer.sh --broker-list localhost:9092 --topic test
[2016-08-25 12:06:33,784] WARN Property topic is not valid (kafka.utils.VerifiableProperties)
Hi There
[2016-08-25 12:06:36,183] WARN Error while fetching metadata [{TopicMetadata for topic test ->
No partition metadata for topic test due to kafka.common.LeaderNotAvailableException}] for topic [test]: class kafka.common.LeaderNotAvailableException (kafka.producer.BrokerPartitionInfo)
[2016-08-25 12:06:36,214] WARN Error while fetching metadata [{TopicMetadata for topic test ->
No partition metadata for topic test due to kafka.common.LeaderNotAvailableException}] for topic [test]: class kafka.common.LeaderNotAvailableException (kafka.producer.BrokerPartitionInfo)
[2016-08-25 12:06:36,217] ERROR Failed to collate messages by topic, partition due to: Failed to fetch topic metadata for topic: test (kafka.producer.async.DefaultEventHandler)
Just to verify that I'm not doing anything ultra dumb, in linux I'm,
Running the image (using localhost because I'm in linux): docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 spotify/kafka
Exec-ing into the image: docker exec -it stupefied_wing bash
Navigating to the kafka tools: cd /opt/kafka_2.11-0.8.2.1/bin/
Starting the console producer: ./kafka-console-producer.sh --broker-list localhost:9092 --topic test
I get a warning here [2016-08-25 12:12:35,959] WARN Property topic is not valid (kafka.utils.VerifiableProperties)
Type in some message... and see above :)
Thanks again, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Got it! It looks like using the console producer does not correctly create the topic. So ./kafka-topics.sh --create ... should be used before producing/consuming.
First off let me say thank you for this great image!
A few days ago I was running the image and it was working well.
Lately, though, I've been trying to follow the most basic steps (as listed in the Run section at dockerhub) and it's been erroring with
Just to verify that I'm not doing anything ultra dumb, in linux I'm,
localhost
because I'm in linux):docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 spotify/kafka
docker exec -it stupefied_wing bash
cd /opt/kafka_2.11-0.8.2.1/bin/
./kafka-console-producer.sh --broker-list localhost:9092 --topic test
[2016-08-25 12:12:35,959] WARN Property topic is not valid (kafka.utils.VerifiableProperties)
Thanks again, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: