edi - Talend : Generate and populate txt file and put in on FTP -
i have question in talend :
i need create file name "file_" + talenddate.getdate("ccyy-mm-dd hh:mm:ss") + ".txt"
, populate result of sql query , add "\t" separator on each column of each row.
after that, need connect ftp (through tftpconnection component), , put file on folder (through tftpput component)
the main problem encounter don't know composent should use when i'll create text file ? should use tfileoutputpositional ? tfileoutputdelimited ? component ?
moreover, have issue : when i'm connecting ftp, no worries when i'm on tftpput component, have issue :
java.net.sockettimeoutexception: accept timed out
any idea ?
thanks
first need execute sql query.
to generate file should use tfileoutputdelimited on row data , change field separator tab "\t".
set filename directly in tfileoutputdelimited component. keep in mind path contains forward slashes, e.g.:
"c:/my-folder/file_" + talenddate.getdate("ccyy-mm-dd hh:mm:ss") + ".txt"
depending on configuration might set ftp connection passive mode (see more here https://community.boomi.com/docs/doc-1643)
Comments
Post a Comment