<?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: Using a remote file as input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232024#M22131</link>
    <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Method failed: HTTP/1.1 405 Method Not Allowed&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource. Try to uncheck the box 'post method'.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 04 Mar 2011 02:18:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-04T02:18:44Z</dc:date>
    <item>
      <title>Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232013#M22120</link>
      <description>Dear all,
&lt;BR /&gt;First of all, I'm already very sorry, as this might to be a very basic question... But I am starting to dig into Talend and still feel quite lost :-)
&lt;BR /&gt;What I would like to do is (I guess) pretty simple: download an xml or csv file through http, map it against an existing PostgreSql table and populate the Postrgre table with the records of the input file.
&lt;BR /&gt;My problem is that the component tFileInputDelimited seems to accept only local files and don't recognize my http string:
&lt;BR /&gt;
&lt;A href="http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt" target="_blank" rel="nofollow noopener noreferrer"&gt;http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt&lt;/A&gt;
&lt;BR /&gt;Is there a particular syntax? or did I forget to do something? a component that will download the file to feed the tFileInputDelimited component?
&lt;BR /&gt;Thanks a lot in advance for your help!
&lt;BR /&gt;Stéphane</description>
      <pubDate>Sat, 16 Nov 2024 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232013#M22120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232014#M22121</link>
      <description>Hello
&lt;BR /&gt;You can use tFileFetch to get the file into local disk first and then use tFileInputDelimited to read the file.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 19 Jan 2011 16:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232014#M22121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232015#M22122</link>
      <description>Amazing, thanks for that! I will try it and, for sure, come back with loads of other questions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Stéphane</description>
      <pubDate>Wed, 19 Jan 2011 16:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232015#M22122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T16:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232016#M22123</link>
      <description>Well... I have one already! 
&lt;BR /&gt;How to link the tFileFetch component to the tFileInputDelimited? 
&lt;BR /&gt;Should I "hard-code" in the parameters of tFileFetch the output path and name and then use this as an input for tFileInputDelimited? Or is there a way to link directly the 2 components? (so that, e.g., if I change that output path of tFileFetch, the input path of tFileInputDelimited is automatically updated). 
&lt;BR /&gt;And, in any case, will the output file of tFileFetch replace the previous output file everytime I run the job? Or is there a specific setting to setup to reach this behavior? 
&lt;BR /&gt;Thanks again! 
&lt;BR /&gt;Stéphane</description>
      <pubDate>Thu, 20 Jan 2011 05:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232016#M22123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T05:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232017#M22124</link>
      <description>Hello 
&lt;BR /&gt;The job looks like: 
&lt;BR /&gt;tFileFetch 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFileInputDelimited--row1--&amp;gt;tLogRow 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;so that, e.g., if I change that output path of tFileFetch, the input path of tFileInputDelimited is automatically updated).&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Define a context variable for the output path of tFileFetch and the input path of tFileInputDelimited, so that both the two component always use the same path. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;And, in any case, will the output file of tFileFetch replace the previous output file everytime I run the job?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;If you set a fixed file name, it will replace the previous output file everytime, so you need to set a dynamical file name, eg: 
&lt;BR /&gt;"test"+TalendDate.formatDate("yyyy/MM/dd_HH:mm",TalendDate.getCurrentDate())+".txt" 
&lt;BR /&gt;when you run the job, it generate a file called: 
&lt;BR /&gt;test_2011/01/20_13:27.txt 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 20 Jan 2011 05:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232017#M22124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T05:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232018#M22125</link>
      <description>That was a quick answer!&lt;BR /&gt;Will try so then, thanks a lot!</description>
      <pubDate>Thu, 20 Jan 2011 05:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232018#M22125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T05:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232019#M22126</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;what you mean by "tFileInputDelimited--row1--&amp;gt;tLogRow". If I add a tLogRow component, I see all the records from the fetched file, which is correct,&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I only take an example, It extract the records from the file and print them on console after you fetch the files successfully. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;but still this only works if I entered a fixed file path as input for tFileInputDelimited.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can set a dynamical path with context variable (see my screenshot) 
&lt;BR /&gt;so that you can set the value each time when you execute the job, see 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj3dCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-the-command-line/td-p/66042&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoO0CAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Delete-file/td-p/94194&lt;/A&gt; 
&lt;BR /&gt;or load the value from file/db with tContextLoad component at runtime.( see demo job on 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?id=9130)" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?id=9130)&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;As far as I understand, the OnSubJobOk will only check that the fetch was successful&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, you are right. Only the subjob, tFileFetch here works successfully will fire the next subjob begin to run, otherwise, it is not. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 21 Jan 2011 05:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232019#M22126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T05:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232020#M22127</link>
      <description>It works perfectly!
&lt;BR /&gt;Now just to improve a little bit, I would like to use what you wrote in your first post in order to keep tracks of all fetched files:
&lt;BR /&gt;"test"+TalendDate.formatDate("yyyy/MM/dd_HH:mm",TalendDate.getCurrentDate())+".txt"
&lt;BR /&gt;This used to work if I hard-code the path and file name but not if I enter it as default value in the context variable. Any advice on this?
&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 21 Jan 2011 06:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232020#M22127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T06:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232021#M22128</link>
      <description>Hello 
&lt;BR /&gt;Add a tJava at the begining of job, for example: 
&lt;BR /&gt;tJava 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFileFetch 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFileInputDelimited--main--&amp;gt;tLogRow 
&lt;BR /&gt;and type in the following code on tJava: 
&lt;BR /&gt;context.filename="test"+TalendDate.formatDate("yyyy/MM/dd_HH:mm",TalendDate.getCurrentDate())+".txt"; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 21 Jan 2011 06:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232021#M22128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232022#M22129</link>
      <description>And this works perfectly too!
&lt;BR /&gt;Thanks and have a great week-end!</description>
      <pubDate>Fri, 21 Jan 2011 11:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232022#M22129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-21T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232023#M22130</link>
      <description>Hi Shong, 
&lt;BR /&gt;I followed this example as explained by you. I am getting exception as below: 
&lt;BR /&gt;Exception in component tFileFetch_1 
&lt;BR /&gt;java.lang.Exception: Method failed: HTTP/1.1 405 Method Not Allowed 
&lt;BR /&gt; at talenddemosjava.filefetchfromhttp_0_1.FileFetchFromHTTP.tFileFetch_1Process(FileFetchFromHTTP.java:427) 
&lt;BR /&gt; at talenddemosjava.filefetchfromhttp_0_1.FileFetchFromHTTP.runJobInTOS(FileFetchFromHTTP.java:1263) 
&lt;BR /&gt; at talenddemosjava.filefetchfromhttp_0_1.FileFetchFromHTTP.main(FileFetchFromHTTP.java:1125) 
&lt;BR /&gt;The settings are exactly similar as given here, only difference is, my url is https so I have selected the protocol as https. (tried with http too!) 
&lt;BR /&gt;Screenshots are attached. 
&lt;BR /&gt;Appreciate your help!!</description>
      <pubDate>Fri, 04 Mar 2011 00:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232023#M22130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T00:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a remote file as input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232024#M22131</link>
      <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Method failed: HTTP/1.1 405 Method Not Allowed&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource. Try to uncheck the box 'post method'.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 04 Mar 2011 02:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-a-remote-file-as-input/m-p/2232024#M22131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-04T02:18:44Z</dc:date>
    </item>
  </channel>
</rss>

