Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
MyrtoD
Contributor
Contributor

Use multiple tkafkainputs in one job

Hi ,

I want to create a job which read from kafka. I am trying to implement 4 tkafkainput components but at the end only one consumer raise.

I have connected my tkafkinputs with tkafkaconnection via on component ok.

0695b00000G4L2PAAV.png

Labels (2)
7 Replies
Anonymous
Not applicable

Hi

If all tKafkainput components use the same connection, tKafkainput keep listening to server if you don't set the message batches or the condition is not met, the next subjob will not be triggered. Have a try to create different kafka connections for each tKafkainput component?

 

Regards

Shong

MyrtoD
Contributor
Contributor
Author

@Shicong Hong​ 

Hi,

I tried to have 4 tkafkaconnection connected with the tkafkainputs but only one consumer raised at the end.0695b00000G4kBWAAZ.png

Anonymous
Not applicable

Only the first tKafkaInput_1 is running? can you share a screenshot of basic settings of this component?

 

 

MyrtoD
Contributor
Contributor
Author

@Shicong Hong​ 

 

0695b00000G500tAAB.png0695b00000G500KAAR.png

MyrtoD
Contributor
Contributor
Author

0695b00000G501SAAR.png

Anonymous
Not applicable

@Myrto Damianou​ , please change your job design as below and run again.

tPrejob--oncomponentok--tKafkaConnection1--oncomponentok--tKafkaConnection2

 

tKafkaInput1(use tKafkaConnection1)..babababa...

tKafKaInput2(use tKafKaConnection2)...babababa....

 

No trigger connector between tKafkaInput1 and tKafkaInput2 and ..., go to Job settings panel-->Extra and check the 'Enable Multi thread execution' to make all the subjobs run parallel.

 

Regards

Shong

 

 

MyrtoD
Contributor
Contributor
Author

@Shicong Hong​ 

 

I tried it but only consumer raised again.

It is vey weird because when I have 4 separate jobs it raises 4 consumers but it is not efficient

0695b00000G5IkzAAF.png