-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
producer can't send message to the topic #85
Comments
Hmm, I had the same issue, if you check docker-compose logs, I guess the leader is set to docker-machine ip : 9092, which caused this problem. maybe the problem of docker-compose.yml |
@yqian1991 Thanks. your meaning is the var KAFKA_ADVERTISED_HOST_NAME in docker-compose should not be the docker host ip? |
I think the ./broker-list.sh result is no correct,but I have no idea about the reason. @wurstmeister In this case,I should set the KAFKA_ADVERTISED_HOST_NAME value is which above? |
same issue on my side. I guess it should be some error with specific combination of host os / docker version / kafka-docker version. So I try to describe this and the reproduce method as detail as possible here. Host os is Centos 7, Docker version 1.10.3, build 20f81dd, java version 1.8.0 (openjdk), kafka-docker is latest git ( f32ebdc ) . the change is
the ip address 192.168.1.100 is the host address. step to reproduce:
more debug steps:
|
some clue about this issue for my case: inside the kafka server container (please note I just restart the service so the port mapping changed):
the SYN_SENT indicate the cause (but not root cause). from the kafka server (docker instance), it can't connect to DockerHost:ForwardPort to any kafka server in cluster. Instead, it can only connect to some BridgedIp:9092 but it is NOT advertised by zookeeper. However from outside world, the bridged network is not visible but only fowarded port and docker host. The problem now is : how to fix it ? |
ok should be this issue: moby/moby#16137 |
Hi, sorry for the late reply, this could indeed be a firewall issue. sounds very similar to #30 @madfrog2047 the output of |
I've got it working disabling firewalld completely (on Fedora 23) for test purposes... |
@madfrog2047 Just out of curiosity, did you set a (custom) low tickTime in ZooKeeper by any chance? I had the same error with tickTime=10 and it is gone with tickTime=500 (embedded Kafka+ZooKeeper in JUnits). |
Hi Guys, Had the same issue as you, and disabling the Firewall worked fine for me. Did anyone went further on searching which rule we should add to Firewall and be able to leave it active? Thanks a lot. |
set |
It seams related to moby/moby#26594 As workaround you may use
it works for me. |
Hi All I found workaround it works. Let's try |
yes, the KAFKA_ADVERTISED_LISTENERS is very useful, and following is my yml file for reference: version: '2' |
@jeven2016 where did that IP address come from? "10.196.10.6" |
Documentation has been added in #291. Wiki page: https://github.com/wurstmeister/kafka-docker/wiki/Connectivity |
I assume it's the issue of the kafka itself. I've fixed it by:
I cannot call it a decent fix, but it definitely works |
Thar works for me |
it works for me too! thanks |
I set up the kafka cluster according to the instruction,but when I send the message to the created topic,
the error comes
The text was updated successfully, but these errors were encountered: