Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
tFileInputJSON Details:
any ideas for this?
Thanks
Albarhp
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 🙂
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 🙂
I tried to sysout of context.directory the result is:
sysout result
files at my directory
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 🙂
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