Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
TAC 6.2
I've got a question about ftp transfer.
I'm trying to get files with folders from a windows server to another windows server througth Talend Unix server.
The Get part works fine and all files with folders are in the Talend server.
My problem is in the put part.
When i put those files, i'm loosing the folders or i think it tries to copy the file with the tree Talend server.
First tree server is ./Folder1/file
Talend is ./home/user/Folder1/file
Second tree server is ./Folder1/file
My job:
tFtpConnection1 ==> tFTPGet
II
V
tFtpConnection2 ==> tFileList ==> tFTPPut
The tFileList get all files and folders.
In the tFTPPut, the files are ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
It doesn't work.
Wher do i miss something ?
Do i have to zip all files/folders from 1st server and unzip it in the 2nd one ?
Thanks.
Sabrina,
I've created this post because i CAN'T do what you are recommending.
I can do the ftpget but the ftpput doesn't work
Hello,
@Clopes wrote:
Is there another way to transfert files from server 1 to server 2 without copying them in Talend server ?
So far, talend don't support for transferring data by air. You cannot directly transfer your files from FTP server1 to server 2 without copying them to a local directory.
Could you please try to put your local file into your destination remote FTP directory by using tFTPPut component to see if it works?
The work flow looks like: tFTPConnection(destination remote FTP server)-->tFTPPut.
Best regards
Sabrina
Hello,
You are still losing folders tree and all files are put into the root folder instead of every folder?
Have you already tried to check out " Move to the current directory" option in tFTPPut component?
Best regards
Sabrina
It does nothing.
I've tried the move to the current directory and unchek it, put the folders local and distant in hard (no context variable).
I can connect to the server because i've tried the tFTPFileList but the put doesn't do anything.
May be it's my mask ?
Regex is uncheked and i have the "*" to retrieve the folders and the files.
Hello,
When you enter the name of the remote directory you want to upload, do you put "/" at the beginning and "/" at the end of the path?
Note:The ftp component don't have a function of creating directory. So, it is impossible to copy a directory from local to a ftp server, it is only used to transfer file.
Best regards
Sabrina
I have just tried with the / at the beginning and the end and i have this warning
[WARN ]: clients.jcltgreqlisyncserverprod2rec_0_1.jCLTGREQLISyncServerProd2Rec - tFTPPut_1 - No match file exist!
I have added the "*QVD" and "*.csv" and created the folders in the remote server as the connector will not create them as you said.
Hello,
In your tFTPPut componet, you are using a relative path for your local directory? Your selected files is not from a defined local directory?
Best regards
Sabrina
Ok
Got it.
the folders source are
../Qlik/test2/test1.QVD
../Qlik/test2/test2.csv
../Qlik/test1/test.csv
And destination is
/test2/
I thought that in the tftpput local repertory, not writing all the path will take all folders in source.
Wrong.
If i write /Qlik/test2 to /test2/test2 it works.
How can i retrieve all files with folders dynamically to dynamically destination ?
I'm executing y job in local so it's a local folder