<?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: How to include a file in Project Resource in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323653#M93451</link>
    <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to point my job to look for the files which are needed for Project Resource?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, How my job will understand the location of the file.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 18:28:02 GMT</pubDate>
    <dc:creator>Sanjay5</dc:creator>
    <dc:date>2017-07-14T18:28:02Z</dc:date>
    <item>
      <title>How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323651#M93449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to include a file which i am referring in my Talend Job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a talend Routine which uses a file, I have loaded the file to routine along with jar file.&lt;/P&gt;
&lt;P&gt;Now when i run the job in Local mode, Job is able to fetch the data from file, but when i run in job Server, It does not get the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;help needed to resolve the issue&lt;/P&gt;
&lt;P&gt;How&amp;nbsp;to&amp;nbsp;include the file in my project resources for remote run?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323651#M93449</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-11T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323652#M93450</link>
      <description>Hi 
&lt;BR /&gt;It does not support relative file path. You can have a shared directory (through NFS or SMB mount) to have all necessary files accessible for all servers where your job runs. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 12 Jul 2017 07:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323652#M93450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323653#M93451</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to point my job to look for the files which are needed for Project Resource?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, How my job will understand the location of the file.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 18:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323653#M93451</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-14T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323654#M93452</link>
      <description>&lt;P&gt;Please find attached email for detailed explanation on what is the issue i am trying to resolve&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrlB"&gt;Question on Project Resource location for Talend Job.zip&lt;/A&gt;</description>
      <pubDate>Fri, 14 Jul 2017 18:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323654#M93452</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-14T18:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323655#M93453</link>
      <description>&lt;P&gt;You can change path to files for context variables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt; (Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;context.path_to_files+"/file_name1.csv"&lt;BR /&gt;&lt;SPAN&gt;context.path_to_files+"/file_name2.xls"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;context.path_to_files+"/file_name1.csv"context.path_to_files+"/file_name2.xls"&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with implicit context loading it allow refer to different path on different servers&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 08:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323655#M93453</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-07-15T08:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323656#M93454</link>
      <description>&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not looking to share the files between different servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to access a file which is located in Java Project Resource folder. (Same as Eclipse)&lt;/P&gt;&lt;P&gt;See my attached screenshot. (File Name is vmkeys.xml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to access this file when i run the job in JobServer. Not sure where should i keep the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrmD"&gt;Eclipse Screen shot.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrmI"&gt;Question on Project Resource location for Talend Job.zip&lt;/A&gt;</description>
      <pubDate>Tue, 18 Jul 2017 21:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323656#M93454</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-18T21:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323657#M93455</link>
      <description>&lt;P&gt;This functionality exists for ESB services since we have resources there. &amp;nbsp;In DI, it doesn't. &amp;nbsp;You will need to put the file somewhere on disk on your jobserver, and read the file as the first operation of your job.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 03:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323657#M93455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T03:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323658#M93456</link>
      <description>&lt;P&gt;I also mean - not share file between servers, but have unique location for same file on different environment&lt;BR /&gt;&lt;BR /&gt;for example - when Dev machine windows, and Prod Server Linux it is hard to have same PATH to resources&lt;/P&gt;&lt;P&gt;and context variables - help to resolve this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 03:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323658#M93456</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-07-19T03:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323659#M93457</link>
      <description>&lt;P&gt;My Java code routine in the job automatically searches for the file "vmkeys.xml" in project resources folder:&lt;/P&gt;
&lt;P&gt;I.e.&amp;nbsp;C:\Talend\workspace\.Java\src\main\resources&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my local workspace file is located under below path&lt;/P&gt;
&lt;P&gt;C:\Talend\workspace\.Java\src\main\resources\vmkeys.xml&lt;/P&gt;
&lt;P&gt;I do not have to specifically change anything in my job to read data from this file, for local run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now for remote run,&amp;nbsp;If i keep the file in job server in below location&lt;/P&gt;
&lt;P&gt;/ABC/vmkeys.xml&lt;/P&gt;
&lt;P&gt;I am not sure how i change my job to look for this file in any other location in job server:&lt;/P&gt;
&lt;P&gt;I am not sure how to make this work, I believe in Eclipse as well files are read from "Project Resources" folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions would be really helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 06:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323659#M93457</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-19T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323660#M93458</link>
      <description>&lt;P&gt;what is the problem with context variables?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-20 at 12.31.48 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvBD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152125i0E3B1BEFE0E80D63/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvBD.png" alt="0683p000009LvBD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-20 at 12.31.58 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvZr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145937i6D44C8B99598464B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvZr.png" alt="0683p000009LvZr.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;no one fixed value, in properties:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-20 at 12.33.30 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvVg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151950i719D032D9815B247/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvVg.png" alt="0683p000009LvVg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and csv file on each machine:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-07-20 at 12.32.21 AM.png" style="width: 856px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvYz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142662iCC75F1371985782D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvYz.png" alt="0683p000009LvYz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;that all&lt;BR /&gt;when Job start, it read OS variable, it it not NULL - take config file from there, if not from default (for me) place&lt;/P&gt; 
&lt;P&gt;Configuration could be changed without re-build the Job&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323660#M93458</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-07-19T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323661#M93459</link>
      <description>&lt;P&gt;Thanks for detailed explanation,&lt;/P&gt;
&lt;P&gt;I think, I am not able to make my issue clear:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a xml file named vmkeys.xml, which is required for my routine.&lt;/P&gt;
&lt;P&gt;My routine code is accessing this file when ever i run my job.&lt;/P&gt;
&lt;P&gt;I think my code routine&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt; always expects the file to be&lt;/STRONG&gt;&lt;/FONT&gt; at Java Project Resources folder&lt;/P&gt;
&lt;P&gt;I.e.&amp;nbsp;&lt;SPAN&gt;C:\Talend\workspace\.Java\src\main\resources&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If i remove the file from above directory &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;my routine will fail&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if i keep my file to any other directory say&amp;nbsp;C:\Talend\workspace\.Java\src\main\&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;resources1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;In this case also &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;my routine will fail&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Question:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;I want to know if i can change my job routine to start looking for the file "vmkeys.xml" in any other directory.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The reason i want this is, because in job server i dont have any corresponding&amp;nbsp;project resource directory.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323661#M93459</guid>
      <dc:creator>Sanjay5</dc:creator>
      <dc:date>2017-07-19T18:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323662#M93460</link>
      <description>&lt;P&gt;Generally Routines require static methods. &amp;nbsp;Hence, yes, you can pass the path of the file to your routines. It can be an extra parameter to your routine method, which is the path of the file, that you pass when calling the routine.&lt;/P&gt; 
&lt;P&gt;If you call the routine frequently, you can setup a static private variable, create a method to set that variable, and call that method first thing in your job. &amp;nbsp;Then every other routine methods can refer to the static variable which contains the path of the file. &amp;nbsp;And then you load it as usual in your routine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You will need a folder on your jobserver or on a shared drive (locked down so that only the job can access it if the content needs to be secured) where you will put this file.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323662#M93460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T18:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to include a file in Project Resource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323663#M93461</link>
      <description>what is best practice 
&lt;BR /&gt;1. shared directory (through NFS or SMB mount) 
&lt;BR /&gt;2. Create the folders on job server and keep the file?</description>
      <pubDate>Mon, 16 Apr 2018 15:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-a-file-in-Project-Resource/m-p/2323663#M93461</guid>
      <dc:creator>MahiwalVinit</dc:creator>
      <dc:date>2018-04-16T15:04:36Z</dc:date>
    </item>
  </channel>
</rss>

