<?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 best practice to store multiple inputs for a subjob in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269946#M48011</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a job with 4 different sources and store each input table in a hash output component and used it later with hash input.&lt;/P&gt;&lt;P&gt;Now, i built subjobs and want to try it the same way but the hash components seems not to be the way it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know, i can give data from parent to child job via the tbuffer component. But i have 4 datasets i want to use in my subjob. That don't work with tbuffer, right?&lt;/P&gt;&lt;P&gt;Is there a way besides creating temp files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 20:38:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-18T20:38:44Z</dc:date>
    <item>
      <title>best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269946#M48011</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a job with 4 different sources and store each input table in a hash output component and used it later with hash input.&lt;/P&gt;&lt;P&gt;Now, i built subjobs and want to try it the same way but the hash components seems not to be the way it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know, i can give data from parent to child job via the tbuffer component. But i have 4 datasets i want to use in my subjob. That don't work with tbuffer, right?&lt;/P&gt;&lt;P&gt;Is there a way besides creating temp files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 20:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269946#M48011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T20:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269947#M48012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If the data set is same, you can add all the data set to a single buffer output with a code value to determine each dataset. If it is totally different dataset, I would think about the possibility to read directly from DB at subjob rather than reading from the parent job. Or I would keep the data in temp files as it will not overload the memory in this case.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 03:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269947#M48012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T03:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269948#M48013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks for your answer.&lt;/P&gt;
&lt;P&gt;I will try the temp file thing.&lt;/P&gt;
&lt;P&gt;The reason why i want the input in the parent job is because i use the same input again in every subjob.&lt;/P&gt;
&lt;P&gt;There are 6 subjobs (stage 1 to 6) and via the metaservlet in TAC we set a context variable and start the parent job which will run the stage named in context.&lt;/P&gt;
&lt;P&gt;At the end, we trigger the ESB, he does stuff and come back call the DI TAC for the next stage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I report my solution.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 11:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269948#M48013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269949#M48014</link>
      <description>&lt;P&gt;We can use tHash components, but this occupies the memory, as you have 4 different sources , which means you will use 4 tHashoutput and 4 tHashinput, which will be 8 hash components , there is huge memory occupation if the data is more, it is okay to use if we have less amount of data&lt;/P&gt; 
&lt;P&gt;Can you please discribe littele bit detail about 4 sources, based on the incoming source we will have some options to reduce memory issues.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;best way is we can create a folder in the server in all environments, then by using tmap before insertion to target in the basic setting tMap you can find temp data path, But this works with same schema&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.PNG" style="width: 822px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17431i0546C42ECFE12154/image-size/large?v=1.0&amp;amp;px=999" title="tmap.PNG" alt="tmap.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 13:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269949#M48014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269950#M48015</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/19335"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That is the reason I had mentioned both disk options in the form of files or memory options in the form of hash. Based on the processing requirements and available memory, he can choose the preferred method.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 13:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269950#M48015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: best practice to store multiple inputs for a subjob</title>
      <link>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269951#M48016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;here are my solution, i create temp files before reading input data.&lt;BR /&gt;For each input-source the job creates a temp file:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 568px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3uP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150734i0CAB853882158A05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3uP.png" alt="0683p000009M3uP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;and store each Path in globalMap (tJava):&lt;/P&gt; 
&lt;PRE&gt;globalMap.put(((String)globalMap.get("tForeach_1_CURRENT_VALUE")),((String)globalMap.get("tCreateTemporaryFile_1_FILEPATH")));&lt;/PRE&gt; 
&lt;P&gt;To run the different subjobs i used a tRun component with "Use dynamic job". To run a specific stage i used the context.stage variable in "Context Job".&lt;BR /&gt;Because the subjobs have to know where the temp data is stored i use the globalMap variables with the tempfile path as context parameter.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 658px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3uZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133058iED45277F24E0E316/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3uZ.png" alt="0683p000009M3uZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If the subjob is successful, the stage-file will be uploaded to a FTP Server and the ESB get a JMS Message with the information where the file to be found.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;kind regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/best-practice-to-store-multiple-inputs-for-a-subjob/m-p/2269951#M48016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-22T14:37:42Z</dc:date>
    </item>
  </channel>
</rss>

