Closed andy2046 closed 6 years ago
I think this issue needs more context, what you're trying to do and how it relates to this repository, and regarding the yaml please fork so I can see a proper diff.
As produce request worked we can assume that cluster is healthy and connection between rest proxy and cluster is fine.
50002 is a Rest-proxy
generic error code, which might be timeout.
Check rest proxy logs for more details about this error.
Rest proxy might not have enough resources or request might be too big - then you might try to give it more resources, increase query timeout (with timeout
query param), and maybe get a smaller chunk (with max_bytes
query param)
curl -i -X GET -H "Accept: application/vnd.kafka.v2+json" \
http://$RESTIP:8082/consumers/consumer-group-03/instances/consumer-01/records?max_bytes=3000&timeout=30000
You might want to increase timeout defaults / reduce max size of request for rest-proxy deployment as well. see docs
But I would agree that question might not have relation to this repo, and seems you have same issues with confluent images as well here and https://github.com/confluentinc/kafka-rest/issues/445
Thanks a lot @golonzovsky
@golonzovsky thanks for the reply, actually I did try to limit the max_bytes to 50 and timeout to 30,000 before I raised this issue, but it's still the same error
since this repo is quite active and I also use the image built by @solsson, hope to get a solution here
I am looking at the source code to find out why, pls update me if you have any suggestion on this issue
thanks a lot
Hi, Got 50002 error while trying to get records, cannot see the consumer group created in kafka while doing
bin/kafka-consumer-groups.sh --bootstrap-server PLAINTEXT://bootstrap.kafka:9092 --list
steps to produce the issue as shown below:
yams file for deployment as shown below: