<?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: Switching Context at Command Line in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318174#M88543</link>
    <description>Thanks walkerca. I agree, phasing out context variables in a property file outside of Talend job is the right approach. However, this still doesn't solve the problem of not being able to switch context when passing a different value in command line of the master job call. It looks like "--context=" parameter is being ignored in the code generated by TOS 4.2.3r67267 I am using. Wondering if this is a bug. 
&lt;BR /&gt;shong, where are you?</description>
    <pubDate>Wed, 16 Nov 2011 23:45:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-16T23:45:35Z</dc:date>
    <item>
      <title>Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318169#M88538</link>
      <description>Hi, 
&lt;BR /&gt;I have a master job that kicks off 3 child jobs. There are 4 contexts defined in each job, i.e. "local", "qa", "test" and "prod". When I export the master job from TOS 4.2 I choose "qa" as the context and mark &amp;lt;X&amp;gt; "Apply to children" checkbox. This exports the master and the child jobs with "--context=qa" key pair applied. Everything works OK at this point. 
&lt;BR /&gt;Now, I want to move exactly the same exported job to "test" environment. I change the master job call inside .sh script to use "test" context now like this: 
&lt;BR /&gt;#&amp;gt; java -Xms256M -Xmx1024M -cp classpath.jar: nplate_crm.master_amg_0_1.master_amg --context=test $* 
&lt;BR /&gt;However, all child jobs are still being called with --context=qa. Any idea why updating the context option at command line of master job call doesn't get propagated to the child jobs? Ideally, I want to be able to export job once and then deploy it to multiple environments just by changing "--context=..." option. Is this possible? 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 12:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318169#M88538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318170#M88539</link>
      <description>Guys, please help. I have this due Monday. All I want to be able is to call the master job from a shell script with specific --context="" value and have all child jobs switch to that context automatically. Each job already has matching contexts defined for each environment. I need to be able to switch contexts because each environment has different context variable values. Thanks!</description>
      <pubDate>Sun, 13 Nov 2011 17:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318170#M88539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-13T17:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318171#M88540</link>
      <description>I like to use separate config files per environment as described in this post 
&lt;A href="http://bekwam.blogspot.com/2011/10/applying-contexts-to-talend-open-studio.html" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.com/2011/10/applying-contexts-to-talend-open-studio.html&lt;/A&gt; . To specify the different environments, you'll use context_param. 
&lt;BR /&gt;Did you use a common Context Group that is dragged to each job and child job? Even if the context variables match, you'll need to make sure that the environment (dev, test, prod) is valid in each child and that the child jobs' contexts don't just have Default. If only Default is available in the child jobs, go into the context definition and add each environment.</description>
      <pubDate>Mon, 14 Nov 2011 14:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318171#M88540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318172#M88541</link>
      <description>Thank you. Could you please check the link? It returns 404 Page Not Found error. 
&lt;BR /&gt;Yes, i've created 4 contexts in each job (master and children). The name of the contexts match globally (local, qa, test, prod), but the values do not, this is why I need different context to be applied in different environment. I see the property files are being correctly created and exported for each of the contexts. However, when I call the master job and pass it a different "--context=" values, the jobs are still being called with whatever context they've been set to at the time of export. It looks like the "--context" parameter has no effect at all.</description>
      <pubDate>Mon, 14 Nov 2011 16:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318172#M88541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318173#M88542</link>
      <description>I fixed the link.  The period was added to the url in the original version.</description>
      <pubDate>Mon, 14 Nov 2011 19:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318173#M88542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-14T19:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318174#M88543</link>
      <description>Thanks walkerca. I agree, phasing out context variables in a property file outside of Talend job is the right approach. However, this still doesn't solve the problem of not being able to switch context when passing a different value in command line of the master job call. It looks like "--context=" parameter is being ignored in the code generated by TOS 4.2.3r67267 I am using. Wondering if this is a bug. 
&lt;BR /&gt;shong, where are you?</description>
      <pubDate>Wed, 16 Nov 2011 23:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318174#M88543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-16T23:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Context at Command Line</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318175#M88544</link>
      <description>Hi, 
&lt;BR /&gt;I also start jobs in different environments with different init values of context name and also context param values. Exactly I start the jobs from PHP application command looks like this an it's working just fine when switching context: 
&lt;BR /&gt; 
&lt;PRE&gt;/usr/bin/sudo -u iprun /usr/bin/java -Xms256M -Xmx1024M -cp classpath.jar: fnkv_ip.seq_hlavni_proces_1_3.SEQ_Hlavni_Proces --context name=$1 --context_param PkPojistovna=$2 --context_param KodPojistovna=$3 --context_param PkObdobi=$4 --context_param KodObdobi=$5 --context_param PkProdejce=$6&lt;/PRE&gt; 
&lt;BR /&gt;Ladislav</description>
      <pubDate>Thu, 17 Nov 2011 09:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Switching-Context-at-Command-Line/m-p/2318175#M88544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-17T09:01:12Z</dc:date>
    </item>
  </channel>
</rss>

