tFileList can't read specific directory in Linux Redhat

Five Stars

tFileList can't read specific directory in Linux Redhat

Hi All,

 

Overview:

I'm try make ETL at Linux server, my jar from talend if run on windows no problem but when run jar in Linux server tFileList can't read specific directory.

my design :

tFileList ->>  tFileInputJson ->> tLogRow ->> tDBSCD

 

Environtment

Java jdk1.8.0_181

Linux RedHat

 

tFileList Details:

tFileJsonInput.PNGtFileList_Context.PNG

 

tFileInputJSON Details:

tFileList_Detail.PNG

 

any ideas for this?

Thanks

Albarhp


Accepted Solutions
Employee

Re: tFileList can't read specific directory in Linux Redhat

Hi,

 

    First thing I will do is to verify the Current file paths are getting values from tFileList. I will do it by adding a tjava and print the results in console using Syste.out.print().

 

    It could be a small issue that the directory you are pointing might not be having the right files or you are pointing to wrong directory.

 

    Once it is established that I am able to fetch the files in Unix, then I will check whether I have mapped the data of JSON correctly in sample Unix file (since the job is running fine in Windows).

 

Could you please try these and let us know the results?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)


All Replies
Employee

Re: tFileList can't read specific directory in Linux Redhat

Hi,

 

    First thing I will do is to verify the Current file paths are getting values from tFileList. I will do it by adding a tjava and print the results in console using Syste.out.print().

 

    It could be a small issue that the directory you are pointing might not be having the right files or you are pointing to wrong directory.

 

    Once it is established that I am able to fetch the files in Unix, then I will check whether I have mapped the data of JSON correctly in sample Unix file (since the job is running fine in Windows).

 

Could you please try these and let us know the results?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Five Stars

Re: tFileList can't read specific directory in Linux Redhat

I tried to sysout of context.directory the result is:

sysout.PNGsysout resultdir.PNGfiles at my directory

 

 

Employee

Re: tFileList can't read specific directory in Linux Redhat

Ok. So the issue is in identification of files in tFileList component.

 

Could you please remove the file mask and try? Also please verify whether the spelling and case is correct for the directory.

 

I would also suggest to have a quick look in the advanced settings also to make sure that you have not selected "Use exclde filemask"

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

 

   

Five Stars

Re: tFileList can't read specific directory in Linux Redhat

Hi Nikhil,

 

Problems not from directory but problems from json content different between at windows directory and at linux directory.

Thanks for your time.

 

Albarhp

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads