• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFTPFileExists- Control channel unexpectedly closed

#1 2011-08-01 17:22:32

Andross
Member
Registered: 2011-06-27
Posts: 11

tFTPFileExists- Control channel unexpectedly closed

Tags: [ftp]

I'm getting "Control channel unexpectedly closed" after 10 minutes. It turns out the FTP server is setup to allow 10 minute sessions. There's no way around it.

Is there any way to setup Talend to reconnect after this exception?

Last edited by Andross (2011-08-01 17:26:58)

Offline

#2 2011-08-02 09:13:02

AchyuthB
Member
Registered: 2011-06-22
Posts: 85

Re: tFTPFileExists- Control channel unexpectedly closed

Hi Andross,

In the real time you will not be running the job from the talend IDE. Rather you would probably export it, may be as a .bat or a .war file (or what ever).
So, one way of solving your issue would be to create an operating system schedule to call your exported job every 10 minutes.


Thank you
Achyuth B

Offline

#3 2011-08-02 16:35:49

brandon_stubbs93
Member
Company: BOS Solutions
Registered: 2011-01-16
Posts: 164
Website

Re: tFTPFileExists- Control channel unexpectedly closed

Hi Andross,

Try adding an infinite loop
don't forget to disable die on error within the FTPGet.

and set the job out like below:

tinfiniteloop -- iterate --> tjava1 --on component ok --> tFTPGet -- if --> tjava2
       |
       |
on subjob ok
       |
       |
Rest of your normal job


Then set the following context - ftp (type string)

tjava1 code

Code:

if(context.ftp.equals("success")){
break;
}

if statement code:

Code:

((String)globalMap.get("tFTPGet_1_ERROR_MESSAGE"))==null

tjava2 code:

Code:

context.ftp = "success";

(As I cannot recreate this scenario there might be some changes that you need to do but this is to get you on the correct track)
Regards,
Brandon

Last edited by brandon_stubbs93 (2011-08-02 16:50:06)

Offline

#4 2011-08-02 18:46:55

Andross
Member
Registered: 2011-06-27
Posts: 11

Re: tFTPFileExists- Control channel unexpectedly closed

Thanks for that detailed reply. I'll try to implement it.

AchyuthB wrote:

Hi Andross,

In the real time you will not be running the job from the talend IDE. Rather you would probably export it, may be as a .bat or a .war file (or what ever).
So, one way of solving your issue would be to create an operating system schedule to call your exported job every 10 minutes.

The job itself takes at least an hour.

It's going through a list of ids and checking that their items/images/id folder contains an image, and outputting the ones that don't.

Last edited by Andross (2011-08-02 18:50:25)

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFTPFileExists- Control channel unexpectedly closed

Board footer

Powered by FluxBB