Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with running tKafkaInput in a loop

Hi,
I am using Open Studio for Big Data v 6.1.1 and have a pipeline where I am reading data from Kafka and joining it with a small DB and writing the output back to Kafka. The lookup data in DB can change periodically, so my pipeline is:
tLoop -> tJava --(On Component Ok)--> tKafkaInput -> tMap (Lookup using tHiveInput) -> tKafkaOutput
I am using tHiveInput for lookup flow and loading of data in tMap ('Load once' configuration). In tKafkaInput, I have configured option 'Stop after a maximum total duration' setting to 600000 ms i.e. 10 mins. So after every 10 mins., tKafkaInput flow is stopped and started again, with tMap again loading lookup data from Hive.
The problem here is that after one iteration of tLoop is over, in the next iteration tKafkaInput doesn't read any input data. From the logs, I see that consumer id from previous iteration is already present and new iteration consumer is not getting any partition assigned to it.
Can someone please help me here?
Is there any other way I can design my pipeline and achieve the same use case?
Thanks,
Ajay
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hi,
Could you please post your job setting screenshots into forum? What's the java code in tJava component? How did you set  tKafkaInput   component?
More information will be helpful for us to address your issue.
Best regards
Sabrina
Anonymous
Not applicable
Author

Thanks for the reply Sabrina. Job and component configuration files are attached.
Regards,
Ajay
0683p000009MAv0.png 0683p000009MBA0.png 0683p000009MBA4.png 0683p000009MB3T.png 0683p000009MAtb.png 0683p000009MBA9.png 0683p000009MB6o.png
Anonymous
Not applicable
Author

For the same consumer group Id I think you need to start reading the offset storage from "the latest".
Also  i would suggest you separate all components after the tjava in a subjob