<?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>question Generate a summary from multiple flow files in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Generate-a-summary-from-multiple-flow-files/m-p/242117#M203920</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have 3 flows files(CSV) which are generating from ExecuteSQL -&amp;gt; ConvertRecord processor. Flow file 2 and 3 have single column let's say ID field and flow file 1 is a csv with 'n' columns. I want to create a one flow file which is a summary from the 3 flow files i.e, count of rows in flow files 1,2,3 which i can get it from executesql.row.count attribute and content of flow files 2 and 3 which is ID. Later i will send this flow file as an attachment via PutEmail processor. How can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;P Vinay.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 18:34:20 GMT</pubDate>
    <dc:creator>peta_vinay</dc:creator>
    <dc:date>2019-06-10T18:34:20Z</dc:date>
    <item>
      <title>Generate a summary from multiple flow files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Generate-a-summary-from-multiple-flow-files/m-p/242117#M203920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have 3 flows files(CSV) which are generating from ExecuteSQL -&amp;gt; ConvertRecord processor. Flow file 2 and 3 have single column let's say ID field and flow file 1 is a csv with 'n' columns. I want to create a one flow file which is a summary from the 3 flow files i.e, count of rows in flow files 1,2,3 which i can get it from executesql.row.count attribute and content of flow files 2 and 3 which is ID. Later i will send this flow file as an attachment via PutEmail processor. How can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;P Vinay.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 18:34:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Generate-a-summary-from-multiple-flow-files/m-p/242117#M203920</guid>
      <dc:creator>peta_vinay</dc:creator>
      <dc:date>2019-06-10T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a summary from multiple flow files</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Generate-a-summary-from-multiple-flow-files/m-p/242118#M203921</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/114681/petavinay.html" nodeid="114681"&gt;@vinay p&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try with &lt;STRONG&gt;&lt;U&gt;CountText,CalculateRecordStats&lt;/U&gt;&lt;/STRONG&gt; processors will gives what you are looking for.&lt;/P&gt;&lt;P&gt;To get one summary flowfile from 3 flowfiles then first you should merge 3 flowfilee into one by using &lt;STRONG&gt;MergeRecord/MergeContent&lt;/STRONG&gt; processor then use &lt;STRONG&gt;CountText,CalculateRecordStats&lt;/STRONG&gt; processors to get the summary of the flowfile.&lt;/P&gt;&lt;P&gt;Then use &lt;STRONG&gt;PutEmail&lt;/STRONG&gt; processor to send to send the flowfile as an attachment.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:35:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Generate-a-summary-from-multiple-flow-files/m-p/242118#M203921</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-06-11T11:35:03Z</dc:date>
    </item>
  </channel>
</rss>

