<?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 Storing Data from KafkaInput in smaller files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Storing-Data-from-KafkaInput-in-smaller-files/m-p/2245030#M31010</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my usecase, i am receiving data in Kafka 24*7 in ebcdic. I read the data as byte array from kafkainput and parse the data using the tHMAP. Output of tHmap goes to tjavarow as byte array. output from the tJavaRow is getting stored in tHDFSOutput. Initial tJava component to create the filename with datetimestamp.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here are my challenges&lt;/P&gt; 
&lt;P&gt;1) my data is getting stored as a single file in hdfs. I need to have them smaller file, as i might need to see the data from morning to afternoon (or to any point of time). Because of me having the data in a single file, i am unable to fetch data.&lt;/P&gt; 
&lt;P&gt;2) I tried updating the filename in the tJavaRow (that is the reason for inserting the component here). But i am unable to change the file name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Need some suggestions to get this done.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is a flow, recreated for understanding.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="desktop.PNG" style="width: 746px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lupt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153792iD689A37F82AC6EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lupt.png" alt="0683p000009Lupt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:42:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:42:09Z</dc:date>
    <item>
      <title>Storing Data from KafkaInput in smaller files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Storing-Data-from-KafkaInput-in-smaller-files/m-p/2245030#M31010</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my usecase, i am receiving data in Kafka 24*7 in ebcdic. I read the data as byte array from kafkainput and parse the data using the tHMAP. Output of tHmap goes to tjavarow as byte array. output from the tJavaRow is getting stored in tHDFSOutput. Initial tJava component to create the filename with datetimestamp.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here are my challenges&lt;/P&gt; 
&lt;P&gt;1) my data is getting stored as a single file in hdfs. I need to have them smaller file, as i might need to see the data from morning to afternoon (or to any point of time). Because of me having the data in a single file, i am unable to fetch data.&lt;/P&gt; 
&lt;P&gt;2) I tried updating the filename in the tJavaRow (that is the reason for inserting the component here). But i am unable to change the file name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Need some suggestions to get this done.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is a flow, recreated for understanding.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="desktop.PNG" style="width: 746px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lupt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153792iD689A37F82AC6EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lupt.png" alt="0683p000009Lupt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Storing-Data-from-KafkaInput-in-smaller-files/m-p/2245030#M31010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Data from KafkaInput in smaller files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Storing-Data-from-KafkaInput-in-smaller-files/m-p/2245031#M31011</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;I think you need to iterate each row and change the filename dynamically if you want to generate one file for each row or several rows. The job looks like: tJava1-onsubjobok--tkarafInput--tHMap--main--tflowtoIterate--iterate--tjava2--oncomponentok--tfixedFlowInput--main--tHDFSOutput. tJava2: change the file name. tfixedFlowInput: generate the current data. Let me know if you have further questions.&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 03:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Storing-Data-from-KafkaInput-in-smaller-files/m-p/2245031#M31011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T03:47:48Z</dc:date>
    </item>
  </channel>
</rss>

