<?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: Talend jobs iteration execution in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-jobs-iteration-execution/m-p/2330420#M99503</link>
    <description>&lt;P&gt;You can maintain a table that stores table names that you want to load.&lt;/P&gt; 
&lt;P&gt;If you put a tHiveRow with a select from a table containing all the tables, you can first query that then pass it through a tFlowToIterate which will hook into the code you have developed so far.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my example table tt1 has a list of the tables I want to query from.&lt;/P&gt; 
&lt;PRE&gt;select a from tt1&lt;/PRE&gt; 
&lt;P&gt;returns my list of tables, I pass that flow into a tFlowToIterate component then link via an iterate to the second tHiveInput (currently this is your first tHiveInput). All you need inside this query is the row+tableName that you have for the newly tHiveInput component.&lt;/P&gt; 
&lt;PRE&gt;"select * from " + row4.tableName&lt;/PRE&gt; 
&lt;P&gt;This will iteratively run that query on every table contained in the first table you query. &amp;nbsp;At this point you can then hook the output into your tMap etc...This will only work if your tables have matching schemas&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsF4"&gt;hive.png&lt;/A&gt;</description>
    <pubDate>Tue, 05 Sep 2017 14:29:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-05T14:29:53Z</dc:date>
    <item>
      <title>Talend jobs iteration execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-jobs-iteration-execution/m-p/2330419#M99502</link>
      <description>Hi all,
&lt;BR /&gt;We have created a big data standard job in which it ll read from hive and load to hive.
&lt;BR /&gt;In thiveinput component we have select query, which ll fetch from 1 table. The actual scenario is there are 100's of tables with same column names, so we have created a context variable and passed the table names as values. Is there any other way in which the job ll fetch only the table names which are stored in a file or a table and the job can be executed in a loop. Example: for 1 table name if the extraction is complete, it needs to be automatically fetching the another table name which is stored in a file or table.
&lt;BR /&gt;My current job design is
&lt;BR /&gt;Thiveinput-&amp;gt;tmap-&amp;gt;thdfsoutput-&amp;gt;thiveload
&lt;BR /&gt;Talend version-talend data fabric 6.3 enterprise edition.
&lt;BR /&gt;
&lt;BR /&gt;Thanks
&lt;BR /&gt;SS</description>
      <pubDate>Sat, 16 Nov 2024 09:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-jobs-iteration-execution/m-p/2330419#M99502</guid>
      <dc:creator>sri_21</dc:creator>
      <dc:date>2024-11-16T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Talend jobs iteration execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-jobs-iteration-execution/m-p/2330420#M99503</link>
      <description>&lt;P&gt;You can maintain a table that stores table names that you want to load.&lt;/P&gt; 
&lt;P&gt;If you put a tHiveRow with a select from a table containing all the tables, you can first query that then pass it through a tFlowToIterate which will hook into the code you have developed so far.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my example table tt1 has a list of the tables I want to query from.&lt;/P&gt; 
&lt;PRE&gt;select a from tt1&lt;/PRE&gt; 
&lt;P&gt;returns my list of tables, I pass that flow into a tFlowToIterate component then link via an iterate to the second tHiveInput (currently this is your first tHiveInput). All you need inside this query is the row+tableName that you have for the newly tHiveInput component.&lt;/P&gt; 
&lt;PRE&gt;"select * from " + row4.tableName&lt;/PRE&gt; 
&lt;P&gt;This will iteratively run that query on every table contained in the first table you query. &amp;nbsp;At this point you can then hook the output into your tMap etc...This will only work if your tables have matching schemas&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsF4"&gt;hive.png&lt;/A&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-jobs-iteration-execution/m-p/2330420#M99503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T14:29:53Z</dc:date>
    </item>
  </channel>
</rss>

