<?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: developer environment specific defaults in tMap: store on disk tempdir in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200487#M2963</link>
    <description>Hi Christophe Antoine, 
&lt;BR /&gt;I agree with you that context variables should be used, if you want to explicitly configure such a temp dir. 
&lt;BR /&gt;But the situation with TEMPORARY_DATA_DIRECTORY in tMap is different. If I put a tMap component on the job, this property is automagically prefilled. It just works out of the box. But as soon as I copy the job on another machine it stops working. 
&lt;BR /&gt;So I think, Talend should either force the user to set this property explicitly (perhaps with a context variable) if he or she wants to use this functionality. Or it should work implicitly *on every machine*. My problem is, that Talend introduces developer specific information implicitly. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Michael</description>
    <pubDate>Mon, 05 Jan 2009 15:43:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-01-05T15:43:58Z</dc:date>
    <item>
      <title>developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200485#M2961</link>
      <description>Hi there,
&lt;BR /&gt;as soon as you put a tMap component in your job, its property TEMPORARY_DATA_DIRECTORY gets populated with a default temp directory (e.g. "C:\Documents and Settings\JohnDoe\Desktop\MyTalendInstallation\workspace\temp"). This works like a charm on the developer's machine. But when you exchange jobs with other developers or deploy jobs on other machines, things start to get messy. Of course, it is well documented in this forum not to forget to set a specific temp dir. But sometimes we are lazy and think that some tMap instances probably won't need "store on disk" and tend to leave the defaults unchanged. At this very moment, we have "stained" a job's properties with developer seat specific information.
&lt;BR /&gt;Therefore, I suggest a "convention over configuration"-approach. This property should be empty by default. If it is still empty at execution time, the generated code should try to determine a sensible default temp dir (e.g. java.io.File.createTempFile). 
&lt;BR /&gt;Best regards,
&lt;BR /&gt;Michael</description>
      <pubDate>Sat, 16 Nov 2024 14:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200485#M2961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200486#M2962</link>
      <description>Hi,&lt;BR /&gt;For all static path or static value properties; Talend best practice is to use context variables to do that.&lt;BR /&gt;Context variable will be setted for multiple environment when you deploy and run on a different machine.&lt;BR /&gt;For further information about context variables; refer to the &lt;A href="http://www.talend.com/resources/documentation.php" target="_blank" rel="nofollow noopener noreferrer"&gt;Talend Documentation&lt;/A&gt;.&lt;BR /&gt;Best regards;</description>
      <pubDate>Tue, 23 Dec 2008 14:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200486#M2962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-23T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200487#M2963</link>
      <description>Hi Christophe Antoine, 
&lt;BR /&gt;I agree with you that context variables should be used, if you want to explicitly configure such a temp dir. 
&lt;BR /&gt;But the situation with TEMPORARY_DATA_DIRECTORY in tMap is different. If I put a tMap component on the job, this property is automagically prefilled. It just works out of the box. But as soon as I copy the job on another machine it stops working. 
&lt;BR /&gt;So I think, Talend should either force the user to set this property explicitly (perhaps with a context variable) if he or she wants to use this functionality. Or it should work implicitly *on every machine*. My problem is, that Talend introduces developer specific information implicitly. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Michael</description>
      <pubDate>Mon, 05 Jan 2009 15:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200487#M2963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-05T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200488#M2964</link>
      <description>What do you think about display the error icon (with a precise message) on the component when the temp folder has the default value or is empty, and "Store on disk" is enabled?</description>
      <pubDate>Mon, 05 Jan 2009 16:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200488#M2964</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2009-01-05T16:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200489#M2965</link>
      <description>Hi amaumont, 
&lt;BR /&gt;showing an error icon is a very good idea. 
&lt;BR /&gt;But depending on the implementation, such an error icon would probably only be displayed on the original developer's machine. If the default directory on my machine is "C:\Documents and Settings\JohnDoe\Desktop\MyTalendInstallation\workspace\temp", how could a Talend instance on another machine determine that this is the default value? The temp directory on another machine could be "/home/janedoe/myTalendInstallation/workspace/temp". This is exactly the reason, why a default value should *not* be materialized. In a perfect solution, this property should be null as a default. This would illustrate that the developer has not yet explicitly set the property. And if you want this feature to work out of the box, Talend could and should automatically use a sensible temp dir (discovered at runtime), if it encounters such a null default. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Michael</description>
      <pubDate>Mon, 05 Jan 2009 17:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200489#M2965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-05T17:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200490#M2966</link>
      <description>I agree with you, the empty value method is the most sure solution. 
&lt;BR /&gt;Please, add a feature in the Bugtracker. 
&lt;BR /&gt;Thank you for your support. 
&lt;BR /&gt;amaumont</description>
      <pubDate>Tue, 06 Jan 2009 08:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200490#M2966</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2009-01-06T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200491#M2967</link>
      <description>Hi there,&lt;BR /&gt;sorry for the delay. I have now reported this as a feature request in issue #0006090.&lt;BR /&gt;&lt;A href="http://www.talendforge.org/bugs/view.php?id=6090" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=6090&lt;/A&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 14 Jan 2009 07:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200491#M2967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-14T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200492#M2968</link>
      <description>Hi there,
&lt;BR /&gt;thanks for fixing issue #006090 in version 3.0.3.
&lt;BR /&gt;Branch 3.1 introduces a similar problem with the component tUniqRow and its new "Use of disk" capability: The property TEMP_DIRECTORY is prefilled with the workspace-directory. I have reported this as issue #0006983
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/bugs/view.php?id=6983" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=6983&lt;/A&gt;
&lt;BR /&gt;Best regards,
&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 15 Apr 2009 19:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200492#M2968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-15T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: developer environment specific defaults in tMap: store on disk tempdir</title>
      <link>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200493#M2969</link>
      <description>Hi there, 
&lt;BR /&gt;I had a look on the changesets that should fix these bugs. There still seems to be an issue there. Let's have a look on tMap_begin.inc.javajet lines 46 - 50: 
&lt;BR /&gt; 
&lt;A href="http://talendforge.org/trac/tos/browser/trunk/org.talend.designer.components.localprovider/components/tMap/tMap_begin.inc.javajet?rev=21209#L46" rel="nofollow noopener noreferrer"&gt;http://talendforge.org/trac/tos/browser/trunk/org.talend.designer.components.localprovider/components/tMap/tMap_begin.inc.javajet?rev=21209#L46&lt;/A&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;                String tempFolder = ElementParameterParser.getValue(node, "__TEMPORARY_DATA_DIRECTORY__");&lt;BR /&gt;	                if (tempFolder.equals("")) {&lt;BR /&gt; 	                        tempFolder=ElementParameterParser.getValue(node.getProcess(), "__COMP_DEFAULT_FILE_DIR__") + "/temp";&lt;BR /&gt; 	                }&lt;BR /&gt; 	                String rowsBufferSize = ElementParameterParser.getValue(node, "__ROWS_BUFFER_SIZE__");&lt;/PRE&gt; 
&lt;BR /&gt;"__COMP_DEFAULT_FILE_DIR__" is evaluated during code generation and *not* during runtime of the job. Furthermore, the content of the variable tempfolder is used as java code in line 860, so the string literal would have to be enclosed by quotes. 
&lt;BR /&gt;Thus, we have moved the developer specific information from the .item-file to the .java/.class-file of the job. This does not solve the issue. Unfortunately, it makes such problems even harder to debug. 
&lt;BR /&gt;Instead, code should be generated that determines an appropriate temp path at runtime (e.g., using System.getProperty(?java.io.tmpdir?)). 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 21 Apr 2009 10:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/developer-environment-specific-defaults-in-tMap-store-on-disk/m-p/2200493#M2969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T10:06:40Z</dc:date>
    </item>
  </channel>
</rss>

