<?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 Re: How to count files lines using NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317509#M227201</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;,&amp;nbsp;What is the difference between CountText and QueryRecord. Can you detail the use of QueryRecord? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 21:19:47 GMT</pubDate>
    <dc:creator>Justee</dc:creator>
    <dc:date>2021-06-01T21:19:47Z</dc:date>
    <item>
      <title>How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317471#M227176</link>
      <description>&lt;DIV class="lmt__textarea lmt__textarea_dummydiv"&gt;Hi Everyone,&amp;nbsp;I collect data files with NiFi using ListSFTP AND FetchSFTP processors. In these data files I have several different lines. I want to know if there is a processor that can allow me to count the number of lines in the files as I collect them to have a total number of lines. Someone can help me.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Jun 2021 10:46:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317471#M227176</guid>
      <dc:creator>Justee</dc:creator>
      <dc:date>2021-06-01T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317482#M227182</link>
      <description>&lt;P&gt;You can use&lt;SPAN&gt;&amp;nbsp;processor name&amp;nbsp;&lt;STRONG&gt;CountText&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:15:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317482#M227182</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2021-06-01T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317492#M227188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;,&amp;nbsp;Thanks for your help but I had used CountText but the problem is that I have csv files and I only see the number of files instead of counting the number of lines in the files.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317492#M227188</guid>
      <dc:creator>Justee</dc:creator>
      <dc:date>2021-06-01T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317495#M227190</link>
      <description>&lt;P&gt;&amp;nbsp;I have used CSV file with&lt;SPAN&gt;CountText&lt;/SPAN&gt; and it worked fine for me,&amp;nbsp; Upon success it will writes an attribute name "&lt;SPAN&gt;text.line.count" with number of lines as value, attaching sample csv file which I used to test and it has 6 lines.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-01 at 9.10.22 PM.png" style="width: 620px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31391iD97485A83F541CAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-06-01 at 9.10.22 PM.png" alt="Screenshot 2021-06-01 at 9.10.22 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-01 at 9.18.35 PM.png" style="width: 792px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31392iE472EBC5CA07E64F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-06-01 at 9.18.35 PM.png" alt="Screenshot 2021-06-01 at 9.18.35 PM.png" /&gt;&lt;/span&gt;&lt;/H3&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:49:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317495#M227190</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2021-06-01T15:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317500#M227194</link>
      <description>&lt;P&gt;if it's csv, use QueryRecordProcessor with csv reader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then just do SELECT COUNT(*) FROM FLOWFILE&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317500#M227194</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-06-01T17:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317509#M227201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;,&amp;nbsp;What is the difference between CountText and QueryRecord. Can you detail the use of QueryRecord? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 21:19:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317509#M227201</guid>
      <dc:creator>Justee</dc:creator>
      <dc:date>2021-06-01T21:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to count files lines using NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317510#M227202</link>
      <description>&lt;P&gt;CountText will count lines (\r\n).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QueryRecord will count # of records, even if it is two records on a line&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 21:29:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-count-files-lines-using-NiFi/m-p/317510#M227202</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2021-06-01T21:29:49Z</dc:date>
    </item>
  </channel>
</rss>

