<?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: Dynamic Talend ETL JOB tcontextLoad, Parameter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280403#M55265</link>
    <description>Thanks rhall and vapukov. Let me try your suggestions.</description>
    <pubDate>Mon, 24 Oct 2016 21:56:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-24T21:56:04Z</dc:date>
    <item>
      <title>Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280398#M55260</link>
      <description>Hello Guys, 
&lt;BR /&gt;For ETL we have a Java based app which reads database info from a configuration file. So we just have to update the DB credentials , name,server only in that configuration file when we develop , test or deploy the Java app. 
&lt;BR /&gt;We are trying to replace this Java app by a Talend job.So we are trying to find the best way of creating a talend job which accepts database credentials as parameter. I have checked many forums but either the forums are very old or the information given &amp;nbsp;is very difficult to follow. 
&lt;BR /&gt;To summarize, 
&lt;BR /&gt;1.I know context can be used for passing the parameter values to a job dynamically. So i referred below link.The example used here is what exactly i want 
&lt;BR /&gt;TalendOpenStudioComponentsReferenceGuide521EN/16.5+tContextLoad 
&lt;BR /&gt;But the problem is that i am not able to understand below 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;A. How values from tfileinputdelimited are passed to tcontext Load. where are the context defined? 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;B. How tMYSQLInput is able to read the values passed??? 
&lt;BR /&gt;Not sure if the example given in the link is complete. 
&lt;BR /&gt;Can anybody please help by providing the list of components which are required for implementing my requirement? 
&lt;BR /&gt;Also please let me know if there is a better way to read parameter dynamically at runtime? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;EVC&amp;nbsp;</description>
      <pubDate>Wed, 19 Oct 2016 22:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280398#M55260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-19T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280399#M55261</link>
      <description>I cover using the tContextLoad in this tutorial (
&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis&lt;/A&gt;). The tutorial is actually about something a lot more complex, but you can download the job and play around with it to see the context being loaded. You can just isolate components 1 and 2 to see how what you want to do works.</description>
      <pubDate>Thu, 20 Oct 2016 00:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280399#M55261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T00:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280400#M55262</link>
      <description>I cover using the tContextLoad in this tutorial (
&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis&lt;/A&gt;). The tutorial is actually about something a lot more complex, but you can download the job and play around with it to see the context being loaded. You can just isolate components 1 and 2 to see how what you want to do works.</description>
      <pubDate>Thu, 20 Oct 2016 00:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280400#M55262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T00:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280401#M55263</link>
      <description>There are many choices for achieve same goal
&lt;BR /&gt;2 variant which I use:
&lt;BR /&gt;1)&amp;nbsp;
&lt;BR /&gt;- define 3 context group (or more) - dev, qual, prod
&lt;BR /&gt;- for each context group Talend have only 2 hardcoded value (in my case) - group (same - 
&lt;B&gt;dev, qual, prod&lt;/B&gt;) and path for config files (if it not .)
&lt;BR /&gt;so if Job build for use 
&lt;B&gt;prod&lt;/B&gt; context, it will search .\connection_prod.csv&amp;nbsp;
&lt;BR /&gt;&amp;nbsp;if Job build for use 
&lt;B&gt;qual&lt;/B&gt; context, it will search .\connection_qual.csv
&lt;BR /&gt;2)&amp;nbsp;
&lt;BR /&gt;- define 1 context group only
&lt;BR /&gt;- define system environment TALEND_RUN - it for each server could be 
&lt;B&gt;dev, qual, prod&lt;/B&gt;
&lt;BR /&gt;- context include hardcoded only path for config files (for example .)
&lt;BR /&gt;Talend looking for .\connection_$TALEND_RUN.csv
&lt;BR /&gt;
&lt;BR /&gt;all context variables MUST be defined in Talend Repository (or Job build in repository) - just KEY Name, and could include any value&amp;nbsp;
&lt;BR /&gt;csv file include simple KEY, VALUE pair
&lt;BR /&gt;You can define what to do if csv cover not all KEYs from context - it could stop the Job or take default value (NULL if nothing)
&lt;BR /&gt;in tMySQLInput You just use context key name
&lt;BR /&gt;for example:
&lt;BR /&gt;database host - context.db_host
&lt;BR /&gt;Same You can do and with global variables as well
&lt;BR /&gt;You can redefine this values at any time of Job, like You can create loop over XX similar servers:
&lt;BR /&gt;- store XX rows in csv for each server
&lt;BR /&gt;- read value from row, store to global variable
&lt;BR /&gt;- connect to server, run all other steps
&lt;BR /&gt;- read next</description>
      <pubDate>Thu, 20 Oct 2016 01:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280401#M55263</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-10-20T01:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280402#M55264</link>
      <description>I think your second option is the best Vapukov and I use it all the time (but with a database instead of flat files). Using multiple contexts just leads to issues with testing and means that you still need to open and recompile your jobs if a context variable within a particular context changes.</description>
      <pubDate>Thu, 20 Oct 2016 08:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280402#M55264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-20T08:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Talend ETL JOB tcontextLoad, Parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280403#M55265</link>
      <description>Thanks rhall and vapukov. Let me try your suggestions.</description>
      <pubDate>Mon, 24 Oct 2016 21:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Talend-ETL-JOB-tcontextLoad-Parameter/m-p/2280403#M55265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-24T21:56:04Z</dc:date>
    </item>
  </channel>
</rss>

