<?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: Implicit Context Load issues in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249498#M34020</link>
    <description>hi&lt;BR /&gt;about something like multi env.&lt;BR /&gt;@see screenshoot&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
    <pubDate>Thu, 18 Oct 2012 11:21:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-18T11:21:33Z</dc:date>
    <item>
      <title>Implicit Context Load issues</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249497#M34019</link>
      <description>Hello *, 
&lt;BR /&gt;good day. 
&lt;BR /&gt;This issue has been discussed over and over, and I apologise to come up with it again. I have read (many) posts on this, but it seems my prob is a bit different. 
&lt;BR /&gt;As so many, I load the Context from a context file. The jobs have to run on a Unix/Linux system in the end, so I have separate directory pathes to the config file in Windows and in Unix. 
&lt;BR /&gt;On windows the path is defined in the "Contexts/Default" part of the registry. In Unix I have to pass the path via call parameter in a shell. 
&lt;BR /&gt;So I have defined the path to the file in the "project settings" as "context.PARAMS_FILE", and the actual value in the Contexts/Default/PARAMS_FILE variable. 
&lt;BR /&gt;This does work under windows OS, but not in an Unix environment. There I get: 
&lt;BR /&gt; 
&lt;PRE&gt;-bash-3.00$ bash ./Masterjob_run.sh&lt;BR /&gt;C:/myproject/Datamigration/conf/migration.ctx (No such file or directory)&lt;BR /&gt;Warning: Parameter "TEST_DATA_DIR" has not been set by Implicit_Context_Context&lt;BR /&gt;Warning: Parameter "DISCARD_FILE_DIR" has not been set by Implicit_Context_Context&lt;BR /&gt;Warning: Parameter "LOG_FILE_DIR" has not been set by Implicit_Context_Context&lt;BR /&gt;Warning: Parameter "REJECT_FILE_DIR" has not been set by Implicit_Context_Context&lt;BR /&gt;Warning: Parameter "ERROR_FILE_DIR" has not been set by Implicit_Context_Context&lt;BR /&gt;Warning: Parameter "PARAMS_FILE" has not been set by Implicit_Context_Context&lt;BR /&gt;***  A0005_Display_Configuration ...&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;Runtime context parameters&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;PARAMS_FILE      = C:/myproject/Datamigration/conf/migration.ctx&lt;BR /&gt;DISCARD_FILE_DIR = C:/myproject//Datamigration/logs/discard&lt;BR /&gt;ERROR_FILE_DIR   = C:/myproject/Datamigration/logs/error&lt;BR /&gt;LOG_FILE_DIR     = C:/myproject//Datamigration/logs&lt;BR /&gt;REJECT_FILE_DIR  = C:/myproject/Datamigration/logs/reject&lt;BR /&gt;TEST_DATA_DIR    = C:/myproject/Datamigration/data&lt;BR /&gt;--------------------------------------------------&lt;/PRE&gt; 
&lt;BR /&gt;As one might guess, "C:/myproject/Datamigration/conf/migration.ctx " is the Windows location of the config file. The output from "*** " on is generated by a tJava component doing a 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println(""\nDISCARD_FILE_DIR = " + context.DISCARD_FILE_DIR");&lt;/PRE&gt; 
&lt;BR /&gt;(and so on) in the end. 
&lt;BR /&gt;The test shell script on Unix: 
&lt;BR /&gt; 
&lt;PRE&gt;cd `dirname $0`&lt;BR /&gt; ROOT_PATH=`pwd`&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: testproject.masterjob_0_1.Masterjob --context=Default "--context_param PARAMS_FILE=$HOME/conf/migration.ctx"&lt;BR /&gt;PARAMS_FILE=$HOME/conf/migration.ctx"&lt;/PRE&gt; 
&lt;BR /&gt;It is run from the directory where the shell script resides. 
&lt;BR /&gt;I am running the community version of Talend: 
&lt;BR /&gt; 
&lt;PRE&gt;"Talend Open Studio for Data Integration"&lt;BR /&gt;Version: 5.1.2&lt;BR /&gt;Build id: r90681-20120913-0734&lt;/PRE&gt; 
&lt;BR /&gt;Help and suggestions would be greatly appreciated, 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 18 Oct 2012 11:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249497#M34019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-18T11:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Context Load issues</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249498#M34020</link>
      <description>hi&lt;BR /&gt;about something like multi env.&lt;BR /&gt;@see screenshoot&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 18 Oct 2012 11:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249498#M34020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-18T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Context Load issues</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249499#M34021</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;@see screenshoot&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi kzone, 
&lt;BR /&gt;thank you, good idea. I do not know how to activate that "unix" environment when running on unix yet, but I guess I can find out. 
&lt;BR /&gt;beside that, should a parameter like 
&lt;BR /&gt; 
&lt;PRE&gt;--context_param PARAMS_FILE=$HOME/conf/migration.ctx&lt;/PRE&gt; 
&lt;BR /&gt;in the starting shell script not override the definitions in the job? 
&lt;BR /&gt;Thank you again, 
&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 18 Oct 2012 11:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249499#M34021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-18T11:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Context Load issues</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249500#M34022</link>
      <description>Hi&lt;BR /&gt;As kzone suggested, define different contexts  for different env. You can specify the context when executing the job script according to the environment you are. for example:&lt;BR /&gt;cd `dirname $0`&lt;BR /&gt; ROOT_PATH=`pwd`&lt;BR /&gt;java -Xms256M -Xmx1024M -cp classpath.jar: projectname.test_0_1.test --context=Linux "$@"&lt;BR /&gt;//here Linux is a context name.</description>
      <pubDate>Thu, 18 Oct 2012 13:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249500#M34022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-18T13:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Implicit Context Load issues</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249501#M34023</link>
      <description>Post can be closed, thank you.</description>
      <pubDate>Wed, 24 Oct 2012 10:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Implicit-Context-Load-issues/m-p/2249501#M34023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-24T10:26:40Z</dc:date>
    </item>
  </channel>
</rss>

