<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lock file or check if file open in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370119#M133201</link>
    <description>Hi,
&lt;BR /&gt; I want to know whther there is any component for this scenario in TIS?? if yes please suggest me the component and its use. And please reply for above questions. i hope Most of people are expecting the answer for these questions.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Akki</description>
    <pubDate>Thu, 24 Oct 2013 12:35:19 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-10-24T12:35:19Z</dc:date>
    <item>
      <title>Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370112#M133194</link>
      <description>Hi,&lt;BR /&gt;Are there any component that can support us lock a file or check if that file is open?&lt;BR /&gt;Thanks for help!</description>
      <pubDate>Mon, 15 Apr 2013 05:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370112#M133194</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-04-15T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370113#M133195</link>
      <description>Hi, &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Are there any component that can support us lock a file or check if that file is open?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;We don't have such component as you mentioned. As we known that Talend is a code generator ETL which use JAVA as the underline technology generated to perform the Data Extraction, Transformation and Loading.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 15 Apr 2013 06:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370113#M133195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T06:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370114#M133196</link>
      <description>Hi 
&lt;BR /&gt;Thanks for reply, 
&lt;BR /&gt;I'm having problem with file locking. I must run 2 parallel subjob which will access the same file. If subjob 1 run first then subjob 2 will be pause; and if subjob 2 run first, subjob 1 must be pause. 
&lt;BR /&gt;Thus, at each subjob, I must check if the file is opened by another or not. 
&lt;BR /&gt;And because there aren't any supported component, I use tJava with the following code, but it's seem not right. Can u help me solve this problem? Thanks 
&lt;BR /&gt;Here is the code: 
&lt;BR /&gt;java.io.File file = new java.io.File(fileName); 
&lt;BR /&gt;java.nio.channels.FileChannel channel = new java.io.RandomAccessFile(file, "rw").getChannel(); 
&lt;BR /&gt;// Get an exclusive lock on the whole file 
&lt;BR /&gt;java.nio.channels.FileLock lock = channel.lock(); 
&lt;BR /&gt;try { 
&lt;BR /&gt; lock = channel.tryLock(); 
&lt;BR /&gt; System.out.println("lock success"); 
&lt;BR /&gt;} catch (java.nio.channels.OverlappingFileLockException e) { 
&lt;BR /&gt; System.out.println("pause"); 
&lt;BR /&gt;} finally { 
&lt;BR /&gt; lock.release(); 
&lt;BR /&gt;}</description>
      <pubDate>Mon, 15 Apr 2013 09:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370114#M133196</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-04-15T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370115#M133197</link>
      <description>Hi 
&lt;BR /&gt;You can try this job design without adding any Java code to check the file status. 
&lt;BR /&gt;Parent job:
&lt;BR /&gt;tRunJob_1
&lt;BR /&gt;tRunJob_2
&lt;BR /&gt;tRunJob_1: call a child job that run the processing1, uncheck the 'die on error' option on tRunJob.
&lt;BR /&gt;tRunJob_1: call a child job that run the processing2, uncheck the 'die on error' option on tRunJob.
&lt;BR /&gt;Open the Job view of parent job, click Extra tab, and check the 'Mutiple thread execution' option.
&lt;BR /&gt;
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 15 Apr 2013 11:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370115#M133197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370116#M133198</link>
      <description>Use tWaitForFile with the options "Include present file" and "Wait for file to be released" at the start of each subjob.</description>
      <pubDate>Tue, 16 Apr 2013 00:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370116#M133198</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-04-16T00:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370117#M133199</link>
      <description>Hi, 
&lt;BR /&gt; The tWaitForFile is not working for ftp transfer. I have two job. One is getting a file from remote server using tFTPGet. 
&lt;BR /&gt;Other reading the file which is read from remote server. Both job running parallely. 
&lt;BR /&gt; 
&lt;BR /&gt; Job 1 : tFTPConnection----&amp;gt;tFTPFileList----&amp;gt;tFTPGet 
&lt;BR /&gt; 
&lt;BR /&gt; Job 2: tWaitForFile----on subjob ok----&amp;gt; tFileList--- &amp;gt;tFileInputDelimited---&amp;gt;tMap---&amp;gt;tLogRow. 
&lt;BR /&gt;Problem here, second job is not waiting ftp to complete. I have used "Include present file" and "Wait for file to be released" option in tWaitForFile and checked but still its not working. 
&lt;BR /&gt;As i know there is no file lock component in Talend, how to resolve this problem. Anybody know how to solve it. Please let me know the solution. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Akki</description>
      <pubDate>Wed, 23 Oct 2013 12:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370117#M133199</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-23T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370118#M133200</link>
      <description>Hi,&lt;BR /&gt;   I forgot to mention. I'm using talend TOS 5.2.2 in linux machine. Whether tWaitForFile support only in windows?? &lt;BR /&gt;Regards,&lt;BR /&gt;Akshath Hegde</description>
      <pubDate>Thu, 24 Oct 2013 07:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370118#M133200</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-24T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370119#M133201</link>
      <description>Hi,
&lt;BR /&gt; I want to know whther there is any component for this scenario in TIS?? if yes please suggest me the component and its use. And please reply for above questions. i hope Most of people are expecting the answer for these questions.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Akki</description>
      <pubDate>Thu, 24 Oct 2013 12:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370119#M133201</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-24T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370120#M133202</link>
      <description>Hi 
&lt;BR /&gt;There is a job design problem in your job, you should use iterate instead of onSubjobOk link from tWaitForFile, eg:
&lt;BR /&gt; tWaitForFile----iterate---&amp;gt; tFileList--- &amp;gt;tFileInputDelimited---&amp;gt;tMap---&amp;gt;tLogRow.
&lt;BR /&gt;If you select 'continue loop' otion in the Then list, tWaitForFile keeps working forever without end.
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 25 Oct 2013 03:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370120#M133202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-25T03:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370121#M133203</link>
      <description>Hi shong,
&lt;BR /&gt; Thank you for reply shong. i have checked with iterate in tWaitForFile. But it will not wait file transfer to complete.
&lt;BR /&gt;"tWaitForFile should wait file transfer to complete, after complete transfer only it should take transferred file".
&lt;BR /&gt;Please help to resolve this problem. If you reply quick it will be very helpful for us.
&lt;BR /&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Akki</description>
      <pubDate>Fri, 25 Oct 2013 06:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370121#M133203</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-25T06:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370122#M133204</link>
      <description>Hi Shong,
&lt;BR /&gt; Even i have tried with iterate in tWaitForFile, But tWaitForFile will not wait file transfer to complete. Please suggest a appropriate solution for this.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Mithun</description>
      <pubDate>Fri, 25 Oct 2013 06:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370122#M133204</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-25T06:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370123#M133205</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Both job running parallely.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Why do you run the two jobs parallely? Run the job 2 first, tWaitForFile will monitor the specified directory and trigger the next action once a new file is created, and then run any other jobs. 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 25 Oct 2013 07:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370123#M133205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-25T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370124#M133206</link>
      <description>Hi shong, 
&lt;BR /&gt; Thanks for reply shong. That's our requirement. In our project, file will be transferring from remote server. So other job should wait completion of file transfer. 
&lt;BR /&gt;"Is this possible?? there is any way to achieve this". Please suggest any possibilities for this scenario. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Akki</description>
      <pubDate>Fri, 25 Oct 2013 07:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370124#M133206</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-25T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370125#M133207</link>
      <description>Hi,
&lt;BR /&gt; As u have mentioned tWaitForFile will trigger on next action, But i want other job to wait until FTP completes its transmission. 
&lt;BR /&gt;"For ex: When one process is writing to file other process should not be able to read that file. "
&lt;BR /&gt;Regards,
&lt;BR /&gt;Mithun</description>
      <pubDate>Fri, 25 Oct 2013 07:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370125#M133207</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-25T07:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370126#M133208</link>
      <description>Hi,&lt;BR /&gt;       Please advice me because i am running out of time.&lt;BR /&gt;Regards,&lt;BR /&gt;Akki</description>
      <pubDate>Fri, 25 Oct 2013 10:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370126#M133208</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-25T10:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370127#M133209</link>
      <description>Hi,&lt;BR /&gt;    Can Anybody suggest answer please...&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Mithun</description>
      <pubDate>Mon, 28 Oct 2013 05:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370127#M133209</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-28T05:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370128#M133210</link>
      <description>Hi Mithun 
&lt;BR /&gt;Job1 and Job2 are two separated jobs in your case, right? As I suggested, run Job2 (contains tWaitForFile component) first to make tWaitForFile keep monitor the specified folder and trigger next action once a new file arrives. 
&lt;BR /&gt;If I don't understand your request well, can you please export the jobs and email them to me? 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 28 Oct 2013 05:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370128#M133210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-28T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370129#M133211</link>
      <description>Hi shong,
&lt;BR /&gt; I have sent the mail to you. Please find the attachment in it.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Akshath</description>
      <pubDate>Mon, 28 Oct 2013 14:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370129#M133211</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-28T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370130#M133212</link>
      <description>Hi,&lt;BR /&gt;    It's very sad that many of questions are still unanswered in talend forge!!! It is not good for talend as well as for the us (talend user). People will be tired of waiting for answer. I have been expecting answer for AKSHATH question but there is no result here. I think it better, not to ask quetion's from talend forge. If there is no answer then why we have to waste our time in posting questions.&lt;BR /&gt;&lt;BR /&gt;-----------------&lt;BR /&gt;From,&lt;BR /&gt;Talend User</description>
      <pubDate>Wed, 30 Oct 2013 08:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370130#M133212</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-10-30T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file or check if file open</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370131#M133213</link>
      <description>Hi Akshath
&lt;BR /&gt;I have received your email and your job, but we have so many topics/questions to read and answer each day, please notify your reply to me if I miss your topic next time. I will try to take a look at your job and reply you today.
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 30 Oct 2013 09:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lock-file-or-check-if-file-open/m-p/2370131#M133213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T09:05:36Z</dc:date>
    </item>
  </channel>
</rss>

