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

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

how to stream from kafka topic (TkafkaInput) to a local file (TfileOutPutDelimted)

Hello,

I am trying to stream data from a kafka topic to a local file on my pc, but each time i run the map the file comes out as an empty file with no data in it.

is there's a specific way to do it ?? because i cant find the issue

 

All i want to do is to stream data from the topic to the local text file in real time.

 

here's my map and output file

0683p000009M9pj.jpg

 

0683p000009M9po.jpg

 

and here is the output file , it is always empty

 

0683p000009M9pt.jpg

 

thanks and have a nice day.

Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi
Add a tLogRow before tFileOutputDelimited to print the result on the console to check if the data are read correctly from the kafka topic.

Regards
Shong
priya_10
Contributor
Contributor

I have similar requirement , message is printed correctly in log but not able to write in file

ThomasLetellier
Contributor
Contributor

I got the same issue, does anyone knows how to fix it ?

Anonymous
Not applicable
Author

@thomas letellier​ , have a try to split the job to two steps, cache the message in memory and read them back in next subjob.

tkafkaInput--main--tHashOutput

|onsubjobok

tHashInput--main--tFileOutputDelimited

 

Let me know if it works.

 

Regards

Shong