Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Group,
I have a job that reads a list of image url's from a DB and downloads each in an iterate loop. The job hangs at a random url in the tFileFetch. The debugger is no help:
I have the timeout set for 10 seconds (10000 ms) in the tFileFetch
I set the timeout to 10ms and it did finish but missed 80% of the files.
I set it to 100ms and it hung...
Any advice at all on how to proceed would be greatly appreciated. I am running v6.2.1
Hi,
Could you please also post your current job design screenshot into forum? How does your loop work?
Best regards
Sabrina
Here is the main job. It looks at two url sources. Then I iterate to a subjob to fetch the two images. The url's are passed as params:
The subjob checks to see if the url field is null or blank. If not it tries the fetch
There are about 4000 images to download, and It get anywhere between 10 and 500 before it hangs. Files come from many different locations. When it hangs I see the file it's trying to download in the folder in my work directory, but it shows a size of 0. When it hangs it will sit forever - until you manually cancel the job.
I'm going to try building a simplified test job to see if I can get more insight. One without a subjob and multiple iterate operations. And another test job that just tries to download the same file in a iterate loop.
another update. I created a simple job and connected a tloop for 1 to 3000 ----> iterate -----> tfilefetch
the file is the same file every time:
...https://images.tradeservice.com/TF6WT1M87RNDP45U/PRODUCTIMAGES/DIR100002/BRONUTC00003_16_TN_001.jpg
after a random number of downloads, the Talend job hangs. I quickly try the url in a browser, and it spins. So the server is slow...
But the question is, why doesn't the tfilefetch give up and move on to the next iteration after the specified number of milliseconds?
Hello,
Could you please go to Window > Show view > General > Error Log to see if there is any error message?
Best regards
Sabrina
Here are the log entries for a job.
!ENTRY org.talend.platform.logging 1 0 2017-07-10 10:31:16.262
!MESSAGE 2017-07-10 10:31:16,262 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.butler:code.Master:6.2.1 @ C:\Talend\Workspaces_6_2_1\WS_Butler\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2017-07-10 10:31:17.402
!MESSAGE 2017-07-10 10:31:17,402 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.butler:code.Master:6.2.1 @ C:\Talend\Workspaces_6_2_1\WS_Butler\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2017-07-10 10:31:18.543
!MESSAGE 2017-07-10 10:31:18,543 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.butler:code.Master:6.2.1 @ C:\Talend\Workspaces_6_2_1\WS_Butler\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2017-07-10 10:31:19.715
!MESSAGE 2017-07-10 10:31:19,715 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.butler:code.Master:6.2.1 @ C:\Talend\Workspaces_6_2_1\WS_Butler\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2017-07-10 10:31:20.403
!MESSAGE 2017-07-10 10:31:20,403 INFO org.talend.designer.core.runprocess.Processor - Command line: C:/Java/jre1.8.0_112/bin/java.exe -Xms256M -Xmx1024M -Dfile.encoding=UTF-8 -cp C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/target/classes;.;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/commons-codec-1.6.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/commons-httpclient-3.0.1.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/commons-logging-1.1.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/dom4j-1.6.1.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/jcifs-1.3.0.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/jtds-1.3.1-patch.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/log4j-1.2.16.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib/talendcsv.jar;C:/Talend/Workspaces_6_2_1/WS_Butler/.Java/lib; butler.testfilefetch_0_1.testFileFetch --context=Test --stat_port=3978 %*