<?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: Context_param in properties file for execution in commandLine in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299822#M72127</link>
    <description>Tks pti for the properties file explanation.</description>
    <pubDate>Thu, 09 Aug 2012 11:13:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-09T11:13:10Z</dc:date>
    <item>
      <title>Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299809#M72114</link>
      <description>Hello, 
&lt;BR /&gt;I have a job with 2 parameters. 
&lt;BR /&gt;Actually, I execute the job by doing this : 
&lt;BR /&gt;jobname.bat --context_param param1=C:\TalendFiles\test.csv --context_param param2=toto 
&lt;BR /&gt;Is there possible to make Talend replace context parameters automatically with properties file? 
&lt;BR /&gt;For example , I make a properties file with my two parameters in and I give the path to the properties file in the commandLine? 
&lt;BR /&gt;example : 
&lt;BR /&gt;jobname.bat --context_properties C:\TalendFiles\job.properties 
&lt;BR /&gt;Do you know of it's possible? 
&lt;BR /&gt;Thank's for advance.</description>
      <pubDate>Sat, 16 Nov 2024 13:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299809#M72114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299810#M72115</link>
      <description>Hi,
&lt;BR /&gt;Try
&lt;BR /&gt;jobname.bat --context_param params_file=C:\TalendFiles\job.properties</description>
      <pubDate>Tue, 05 Jan 2010 22:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299810#M72115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-05T22:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299811#M72116</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;jobname.bat --context_param params_file=C:\TalendFiles\job.properties&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;With this syntax, do you have to use a tContextLoad component on params_file inside your job, or does Talend load the file automatically?
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Mar 2010 15:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299811#M72116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-03T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299812#M72117</link>
      <description>I think I have found the answer to my own question - I will describe it here in case it is useful to others. There are two possible solutions. In either case, you must create a context variable called params_file in your job (note that the name params_file is arbitrarily chosen).
&lt;BR /&gt;One solution is to use a tContextLoad in each job. Place a tFileInputDelimited component that reads from the named in context.params_file, then connect it to a tContextLoad component.
&lt;BR /&gt;An easier solution is to use the Implicit Context Load option in the job settings or project. To do this, go to the job properties view when you have the job open, and click the "Extra" tab. Check the "Implicit tContextLoad" option, and choose "From File". Then in the file path, you can enter context.params_file.
&lt;BR /&gt;If you want to load the same context for many jobs, you can use the Project Settings to set the implicit context load settings jobs. To do this, go to File -&amp;gt; Edit Project Properties, and Choose Job Settings -&amp;gt; Implicit Context Load. Configure the settings here as above. Then, go to the Job Settings -&amp;gt; Use Project Settings and select all the jobs that you want to have these settings. When you click OK or Apply, the settings will be applied to all of the jobs.
&lt;BR /&gt;This appears to work for me. Anyone should free to correct me if I am mistaken on any point.</description>
      <pubDate>Fri, 05 Mar 2010 17:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299812#M72117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-05T17:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299813#M72118</link>
      <description>Hi 
&lt;BR /&gt;thanks for sharing your solutions. 
&lt;BR /&gt;Do you know if one can use relative path when specifying location for the params file? 
&lt;BR /&gt;Here's why I ask you that: 
&lt;BR /&gt;absolute project folder position might be different in development environment, test env., production env. 
&lt;BR /&gt;very likely, the params file will be stored somewhere under the project folder. 
&lt;BR /&gt;so the absolute position for this file will change in different environment, but its relative position could be kept the same. 
&lt;BR /&gt;funny enough, one of the parameters to store in the file would be the current absolute project root path. 
&lt;BR /&gt;Cheers 
&lt;BR /&gt;Giuseppe</description>
      <pubDate>Mon, 31 May 2010 11:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299813#M72118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-31T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299814#M72119</link>
      <description>Hi Giuseppe,
&lt;BR /&gt;You can indeed use a relative file path. The file name that you set in the implicit context load settings will be relative to the current directory when the job runs. The batch/shell scripts that are generated to run a job are set up to change to the job's root directory, so that will always be the current directory unless you do something different. For example, I run the job with the parameter:
&lt;BR /&gt;
&lt;PRE&gt;--context_param context_file=../context.properties&lt;/PRE&gt;
&lt;BR /&gt;and the context.properties file is located in the directory above all the job folders.
&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Tue, 01 Jun 2010 13:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299814#M72119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-01T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299815#M72120</link>
      <description>A-ha. Thanks for your feedback.
&lt;BR /&gt;It looks to me as what you're saying is strictly related to the scenario (so to say): &amp;lt;&amp;lt;run job from exported script and passing context variable value on command line&amp;gt;&amp;gt;
&lt;BR /&gt;What about instead the scenario: &amp;lt;&amp;lt;run job from within IDE and setting context variable value in IDE dialog window" ?
&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 01 Jun 2010 15:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299815#M72120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-01T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299816#M72121</link>
      <description>For running the job within the IDE, I don't know what the working directory is - it's probably somewhere in your workspace.  I just used an absolute path.</description>
      <pubDate>Tue, 01 Jun 2010 15:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299816#M72121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-01T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299817#M72122</link>
      <description>For that I figured it out: 
&lt;BR /&gt;it's the TOS executable directory (i.e. somewhere under C:\program files (x86)\ ... \TOSvXYZ ... \bin ...). 
&lt;BR /&gt;I was just wondering if you could specify in the IDE some path relative to project position, but it looks like the answer is no. 
&lt;BR /&gt;As you say, in the IDE (as in development environment) I might use an absolute path for the context variable, and then in test and production environment I can set the same variable from command line. 
&lt;BR /&gt;Ok. 
&lt;BR /&gt;Thanks for all explanations. 
&lt;BR /&gt;Cheers 
&lt;BR /&gt;Giuseppe</description>
      <pubDate>Tue, 01 Jun 2010 15:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299817#M72122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-01T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299818#M72123</link>
      <description>I just wanted to say this is a really useful thread. I've never been happy about defining context values directly within the jobs (especially for Production), so thank you, pti, for coming up with a better way of doing this.</description>
      <pubDate>Mon, 19 Jul 2010 20:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299818#M72123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-19T20:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299819#M72124</link>
      <description>not sure if it is what you are looking for&lt;BR /&gt;i use a OS variable to keept the location of my properties file&lt;BR /&gt;set the job to load implicity context from the project menu (file &amp;gt; edit project settings &amp;gt; context loading &amp;gt; )&lt;BR /&gt;and i enter System.getenv("TALEND_INITIAL_CONTEXT")  - System.getenv works on both windows and linux.</description>
      <pubDate>Mon, 19 Jul 2010 21:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299819#M72124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-19T21:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299820#M72125</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If you want to load the same context for many jobs, you can use the Project Settings to set the implicit context load settings jobs.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;If all jobs have implicit context load so they can be run individually using context variables from a file but there is also a master job with implicit context load that calls all the other individual jobs, does the context file get read by each child job or just once for the master?</description>
      <pubDate>Tue, 20 Jul 2010 02:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299820#M72125</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-20T02:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299821#M72126</link>
      <description>hi alevy&lt;BR /&gt;I think there are many other threads in forum related to what you're asking (something about passing context from parent job to child job), so you might be better looking there. Anyway, the answer should be "yes to the second": if every job (parent and child) has the implicit context load set to on, then the context file is read by each child job and by the parent job too. &lt;BR /&gt;ciao</description>
      <pubDate>Tue, 20 Jul 2010 08:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299821#M72126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-20T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299822#M72127</link>
      <description>Tks pti for the properties file explanation.</description>
      <pubDate>Thu, 09 Aug 2012 11:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299822#M72127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T11:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299823#M72128</link>
      <description>Hi,&lt;BR /&gt;I am not able to access Hbase.It is showing&amp;nbsp;&lt;BR /&gt;: org.apache.hadoop.hbase.client.ZooKeeperRegistry - Can't retrieve clusterId from Zookeeper&lt;BR /&gt;org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid&lt;BR /&gt;I am not &amp;nbsp;able to figure out the hbase server and port.&lt;BR /&gt;Please help me on this.</description>
      <pubDate>Wed, 17 Feb 2016 11:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299823#M72128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T11:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Context_param in properties file for execution in commandLine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299824#M72129</link>
      <description>&lt;P&gt;thanks for detailed answer. You have saved my day. !&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-param-in-properties-file-for-execution-in-commandLine/m-p/2299824#M72129</guid>
      <dc:creator>raowaqasakram</dc:creator>
      <dc:date>2022-08-26T14:52:53Z</dc:date>
    </item>
  </channel>
</rss>

