<?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: Mapping a file types in Talend Open studio for bigdata in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220197#M14705</link>
    <description>Hi,&lt;BR /&gt;How to use the output of the tFileList in the tJava component ? &lt;BR /&gt;Thanks,&lt;BR /&gt;ShreeCS</description>
    <pubDate>Wed, 26 Mar 2014 05:51:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-26T05:51:05Z</dc:date>
    <item>
      <title>Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220193#M14701</link>
      <description>Hi,&lt;BR /&gt;I have installed Talend Open studio for Bigdata 5.3.1 and what i wanted to achieve  in this is explained below.&lt;BR /&gt;Suppose consider i have 3 files with different formats namely csv,xml and json.&lt;BR /&gt;For the first time when i load and read these files i will create job components and define the schema for each file. Also i wanted to write some external script such a way that , for second time if the file comes with the same field structure with different data of either csv or xml or json ,my script should call the talend and execute the job particular to that file format. In the sense ,for the 2nd time if the file to be read is xml then it should read the schema created for the xml in the first time, and  the file coming is  csv then it should use the schema created for the csv file in the 1st time.&lt;BR /&gt;So my script can be .sh or .bat file.So can i specify opening the talend and running the jobs based on the file type(csv,xml,json) ? Is it possible to do ?&lt;BR /&gt;Note: Talend open studio does not provide metadata tab under repository manager. So do we need to go for Context variable in this case?&lt;BR /&gt;Please help me what can be done in this scenario.&lt;BR /&gt;Thanks,&lt;BR /&gt;ShreeCS</description>
      <pubDate>Sat, 16 Nov 2024 11:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220193#M14701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220194#M14702</link>
      <description>There are many ways to accomplish what you've described... 
&lt;BR /&gt;Starting with what you have in mind, yes, you can create a job that has a context for the file type, and call the default Talend .sh or .bat and override that context like the following: 
&lt;BR /&gt;./MyTalendJob_run.sh --context_param TODAYDATE=2014-03-24 --context_param FileExt=json 
&lt;BR /&gt;I'm not sure what you mean by TOS does not have metadata in the Repository... It does - at least in my studio 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Now instead of even worrying about passing a particular context value - how about: you design your job to have three flows inside; each one starts with checking the extension of the file (.csv, .xml, .json); and depending on the extension, taking one path within the job that uses a particular schema? You could design the job to simply read all files within a starting directory, pick one at a time and process.... 
&lt;BR /&gt;tFileList --&amp;gt; tJava (decide extension) --&amp;gt; onSubJob OK --&amp;gt; tFileInputDelimited (in case of .csv) ---&amp;gt; read contents with schema --&amp;gt; do something... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139020iA6CF292B0F3AE54E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOl.png" alt="0683p000009MDOl.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220194#M14702</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-25T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220195#M14703</link>
      <description>Hi,&lt;BR /&gt;I'm using TOS for BigData where it doesn't have metadata under repository manager.</description>
      <pubDate>Wed, 26 Mar 2014 03:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220195#M14703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T03:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220196#M14704</link>
      <description>Hi willm, 
&lt;BR /&gt;Using TOS 5.3.1 for Bigdata where i'm not able to see the on SubJob OK in the trigger.Also i have attached the screen shot below. 
&lt;BR /&gt;So in this case what should i do? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132306iDF410E171C54D765/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOI.png" alt="0683p000009MDOI.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 26 Mar 2014 03:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220196#M14704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T03:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220197#M14705</link>
      <description>Hi,&lt;BR /&gt;How to use the output of the tFileList in the tJava component ? &lt;BR /&gt;Thanks,&lt;BR /&gt;ShreeCS</description>
      <pubDate>Wed, 26 Mar 2014 05:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220197#M14705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T05:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220198#M14706</link>
      <description>Hi Willm, 
&lt;BR /&gt;I followed the job process u suggested me. 
&lt;BR /&gt;Here its finding the file type(extension) and reading this. Now i have used only csv file and xml,later on i ll go for json as well. But the thing is i'm getting some error like "Content is not allowed in prolog. Nested exception: Content is not allowed in prolog" and also not reading the xml file properly. 
&lt;BR /&gt;Also after the tJava component i have 2 flows,one is for csv and other is for xml. I have used tFileInputDelimited and tFileInputXML and connected to jJava using onComponentOK. I'm not sure what i need to use here as i do not get the option like onSubjobOK in trigger. 
&lt;BR /&gt;Also i have attached the screenshots of my job and the error. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;ShreeCS 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDGj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144983iE634F14402811C23/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDGj.png" alt="0683p000009MDGj.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152954i30ACE642148A3CA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOq.png" alt="0683p000009MDOq.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220198#M14706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220199#M14707</link>
      <description>Hi,
&lt;BR /&gt;Im able to resolve the xml error. I changed xml type to document to do so.
&lt;BR /&gt;I need one help how we can write expression in IF clause to check for the file ,if it is csv it should go to tFileInputDelimited and if xml then it shold go for tFileInputXML components. I tried writing expression in IF clause in talend ended up with errors.
&lt;BR /&gt;Here in my case IF is between tJava and tFileInputDelimited.
&lt;BR /&gt; 
&lt;BR /&gt;Thanks,
&lt;BR /&gt;ShreeCS</description>
      <pubDate>Wed, 26 Mar 2014 12:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220199#M14707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T12:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220200#M14708</link>
      <description>Hi,
&lt;BR /&gt;Im able to resolve the xml error. I changed xml type to document to do so.
&lt;BR /&gt;I need one help how we can write expression in IF clause to check for the file ,if it is csv it should go to tFileInputDelimited and if xml then it shold go for tFileInputXML components. I tried writing expression in IF clause in talend ended up with errors.
&lt;BR /&gt;Here in my case IF is between tJava and tFileInputDelimited.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;ShreeCS</description>
      <pubDate>Wed, 26 Mar 2014 12:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220200#M14708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-26T12:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220201#M14709</link>
      <description>See attached for a way to do this... 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154889iA29D860107E8E0EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOr.png" alt="0683p000009MDOr.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDKu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134269iA746B2AFFF25B8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDKu.png" alt="0683p000009MDKu.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144243i52972A0CE03FBCE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJD.png" alt="0683p000009MDJD.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135555i22526368488A1930/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOv.png" alt="0683p000009MDOv.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDP0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149029i1BBFCA30365A15D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDP0.png" alt="0683p000009MDP0.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220201#M14709</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-26T20:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220202#M14710</link>
      <description>Hi,&lt;BR /&gt;Thanks for the help and guidance. Now the job is working fine.&lt;BR /&gt;Thanks,&lt;BR /&gt;ShreeCS</description>
      <pubDate>Thu, 27 Mar 2014 04:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220202#M14710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-27T04:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220203#M14711</link>
      <description>Another good way is to use directly in tJava 
&lt;BR /&gt;context.File_Ext = ((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION")); 
&lt;BR /&gt;context.File_Ext = StringHandling.UPCASE(context.File_Ext); 
&lt;BR /&gt;This is much simpler and less complicated... 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 01 Apr 2014 11:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220203#M14711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-01T11:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220204#M14712</link>
      <description>Agreed, sanvaibhav :-). Thx</description>
      <pubDate>Tue, 01 Apr 2014 21:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220204#M14712</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-04-01T21:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220205#M14713</link>
      <description>Hi, 
&lt;BR /&gt;One more thing is , for csv files i have defined the schema (field structure) for the 1st time. For the 2nd time , the csv file with the same field structure will be read using the schema defined already. But in case of XML file while reading for the 1st time i have to specify the Loop Xpath Query whre i will specify the root tag of the XML file. For the 2nd time if i read the xml file with the different root tag will not be read. So what can i do in this case ? how can i achieve this ? 
&lt;BR /&gt;Also one more thing is , i wanted save those files after reading. Here i'm using tLogRow to see the output in the console but i wanted to use tFileOutputDelimited for cs and tFileOutputXML for xml files. If i'm reading only one csv file and one xml file , i'm able to save those files . If i reading more than one csv xml file ,i'm not getting the result. For that also again i need to use tJava component and write the code for different output file. How this can be done? 
&lt;BR /&gt;Please guide me on this. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;ShreeCS</description>
      <pubDate>Wed, 02 Apr 2014 07:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220205#M14713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-02T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping a file types in Talend Open studio for bigdata</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220206#M14714</link>
      <description>Hi Shree,&lt;BR /&gt;Answer to first para question is - root node change means metadata change...--&amp;gt; can't read the file&lt;BR /&gt;Answer to second para question is - Answer lies in the same thread above... there is a screenshot by willm... Refer that and use similar logic to tweak.. use tIterate link from tFilelist to read multiple files one at a time and based on extension change flow using If clause.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Thu, 03 Apr 2014 06:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-a-file-types-in-Talend-Open-studio-for-bigdata/m-p/2220206#M14714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-03T06:15:03Z</dc:date>
    </item>
  </channel>
</rss>

