using tFTPGet and tGSPut without local directories

Five Stars

using tFTPGet and tGSPut without local directories

Hi All,

I'm kinda new to Talend and Integration cloud, I need to know if there is a way to read a file from FTP server, make some changes, then upload it to Google cloud storage, But, without having to specify a local directory ?

I'm running the job on Cloud (Not RE), and when I specify a local directory in tFTPGet or tGSPut it gives an error "path not found".

 

I'm using 

Talend Integration Cloud Hybrid Edition

Version: 6.5.1
Build id: 20180116_1512

 

Thanks,

Mahmoud.


Accepted Solutions
Ten Stars

Re: using tFTPGet and tGSPut without local directories

Hard to tell what's going on here... maybe mounting, relative paths...
You could to try to use some tSystem component to get environment specs and use it as input for your FTP.

All Replies
Ten Stars

Re: using tFTPGet and tGSPut without local directories

You could simply try:    /   as path... it will use the default path you login from 

Five Stars

Re: using tFTPGet and tGSPut without local directories

Thanks for the reply @Dijke, I've tried that but still got an error "Caused by: java.io.FileNotFoundException: /20180523_0404_SV.TXT "

 

I'm testing with a job of only two components for now as attached, when specifying a local directory and run it on RE it works fine, but on Cloud it's not working even when using "/"  Smiley Sad(( 

 

Ten Stars

Re: using tFTPGet and tGSPut without local directories

Hard to tell what's going on here... maybe mounting, relative paths...
You could to try to use some tSystem component to get environment specs and use it as input for your FTP.
Thirteen Stars

Re: using tFTPGet and tGSPut without local directories

In sftp location are you sure do you have file in / directory?
Manohar B
Ten Stars

Re: using tFTPGet and tGSPut without local directories

The default location may not correspond to the root "/" path.  Maybe try "./" instead?

Five Stars

Re: using tFTPGet and tGSPut without local directories

Thanks @Dijke, that worked fine, I used tSystem to run "pwd" and saved the path in a context variable to use in other components.