Created 07-24-2017 05:38 PM
Hello All,
We are sending some data from Nifi to Kafka topic using PublishKafka processor. We are getting the following error:
PublishKafka Failed to send all messages for StandardFlowFileRecord to Kafka; routing to failure due to org.apache.kafka.common.errors.TimeoutException: Expiring 10 record(s) for test_topic:30011 ms has passed since batch creation plus linger time
We have tried increasing the linger time and request.timeout.ms but still facing the issue.
Any help would be appreciated.
Created 07-24-2017 07:25 PM
@R Patel
Could you please attach the broker server log covering the timestamp when you saw this error. Also what is the current value for linger time and request.timeout.ms?
Also please provide properties for PublishKafka processor. Are you seeing same issue if you publish to any other Kafka topic?
Thanks!
Created 07-25-2017 04:39 AM
Hi dbains,
Thanks for your answer.
As of now, the request.timeout.ms=30000 and linger.ms=1
PublishKafka processor properties are as following:
Yes, we see same issue for all the topics we tried.
Thanks.
Created 07-25-2017 04:43 AM
@dbains
Thanks for your answer.
As of now, the request.timeout.ms=30000 and linger.ms=1
PublishKafka processor properties are as following:
Yes, we see same issue for all the topics we tried.
Thanks.
Created 07-25-2017 09:23 AM
Thanks!
Created 08-16-2018 12:57 PM
Hi @dbains
I am getting the same issue while pulling the data into PublishKafka procesor.
My conf for PublishKafka is :
It throws the error Failed to update metadata 5000 ms.
Could you provide me any solution for this.
Thanks you.
Created 08-16-2018 06:26 PM
Hi,
Could you please try passing the FQDN of the kafka broker in the 'Kafka Brokers property of the processor?
Also may I know what version of Kafka are you trying to publish to?
Thanks!
Created 08-17-2018 05:35 AM
Hi @dbains, thanks for your quick response.
I am using PublishKafka_0_10_1.0.0 processor. and i have given FQDN in kafka property but still getting an error.
Do you have any demo template or any further help.
Created 08-17-2018 06:28 AM
May I know if you are connecting to a Kerberized Kafka or unsecure?
For template , kindly refer: https://community.hortonworks.com/articles/57262/integrating-apache-nifi-and-apache-kafka.html
Its an old article but it covers the basics in detail. Also, is Kafka in the same HDF cluster or are you using a separate Kafka cluster?
Thanks!
Created 08-17-2018 11:15 AM
We are using unsecure Kafka connection and not using MiNiFi, instead of that we are using MQTT.
this is our NiFi flow ..... MQTT --> PublishKafka --> ConsumeKafka --> PutCassandraQL.
What you suggest to use NiFi flow for below process ...
MQTT --> PublishKafka --> ConsumeKafka --> PutCassandraQL