Batch JsonInput from Folder

Five Stars

Batch JsonInput from Folder

Hi,

 

I am trying to extract some data in CSV format from around 40,000 Json files.

Assuming that all files contain the same fields, what would be the best/most effecient way to process these?

 

Thanks

K

 


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: Batch JsonInput from Folder

Hi,

The genral design should look like this:

tFileList-->tFileInputJSON-->(tSomethingElseIfNeeded)-->tFileOutpoutDelimited

Click on the "iterate" link after tFileList then tick the option"Enable parallel execution" then enter the number of threads you want in parallel (maybe something like 4 or 5).


TRF

All Replies
Fifteen Stars TRF
Fifteen Stars

Re: Batch JsonInput from Folder

Hi,

The genral design should look like this:

tFileList-->tFileInputJSON-->(tSomethingElseIfNeeded)-->tFileOutpoutDelimited

Click on the "iterate" link after tFileList then tick the option"Enable parallel execution" then enter the number of threads you want in parallel (maybe something like 4 or 5).


TRF
Five Stars

Re: Batch JsonInput from Folder

You are brilliant, thank you.
it is worth noting that in the filename path for the jsoninput you must specify the variable from tFileList_1:

((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now