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

Getting timeout error #1

Open
naveensanks opened this issue Jul 13, 2019 · 0 comments
Open

Getting timeout error #1

naveensanks opened this issue Jul 13, 2019 · 0 comments

Comments

@naveensanks
Copy link

I used the configs provided by you and ran the below two docker run commands on EC2

docker run -d
--name zookeeper
--hostname zookeeper
-e ZOOKEEPER_CLIENT_PORT=2181
-e ZOOKEEPER_TICK_TIME=2000
--restart unless-stopped
confluentinc/cp-zookeeper:5.2.1

docker run -d
--name kafka
--hostname kafka
-p 9092:9092
-p 29094:29094
-e KAFKA_BROKER_ID=1
-e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
-e KAFKA_LISTENERS=DOCKER_INTERNAL://kafka:29092,HOST_INTERNAL://kafka:9092,EXTERNAL://kafka:29094
-e KAFKA_ADVERTISED_LISTENERS=DOCKER_INTERNAL://kafka:29092,HOST_INTERNAL://localhost:9092,EXTERNAL://:29094
-e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=DOCKER_INTERNAL:PLAINTEXT,HOST_INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
-e KAFKA_INTER_BROKER_LISTENER_NAME=DOCKER_INTERNAL
-e KAFKA_AUTO_CREATE_TOPICS_ENABLE="true"
-e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
-e KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=100
confluentinc/cp-enterprise-kafka:5.2.1

But I am getting the below error when I try to send a message from a producer

File "C:\Python27\lib\site-packages\kafka\producer\kafka.py", line 564, in send
self._wait_on_metadata(topic, self.config['max_block_ms'] / 1000.0)
File "C:\Python27\lib\site-packages\kafka\producer\kafka.py", line 691, in _wait_on_metadata
"Failed to update metadata after %.1f secs." % (max_wait,))
kafka.errors.KafkaTimeoutError: KafkaTimeoutError: Failed to update metadata after 60.0 secs

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

1 participant