<?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: NiFi: FetchFile processor appends new line at end in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160118#M49265</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/11738/ashsskum.html" nodeid="11738" target="_blank"&gt;@Kumar&lt;/A&gt;&lt;P&gt;The NiFi provenance UI adds a newline to your content.  If you go look at the raw file being fetched or moved through the FetchFile processor you will notice that there actually isn't a new line appended.  If I use the same input you do, my provenance UI will show a new line (line 2) after the text "Line1", identical to your screenshot.&lt;/P&gt;&lt;P&gt;However if i look at where the "move" content of the fetchFile Processor is placed,  i see that there isn't a newline.  Also if i do a putFile i notice there isn't a newline either.  Below are some screenshots to show:&lt;/P&gt;&lt;P&gt;Raw file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10470-raw.jpg" style="width: 2288px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20732iC8124983E003F7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10470-raw.jpg" alt="10470-raw.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Provenance shows a new line (line 2):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10471-provenance.jpg" style="width: 1412px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20733iC638F3CD0F54075F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10471-provenance.jpg" alt="10471-provenance.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output of Putfile:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10472-putfileoutput.jpg" style="width: 2148px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20734i238B0AD61763D115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10472-putfileoutput.jpg" alt="10472-putfileoutput.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output of having MoveFile in the fetchFile processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10473-fetchfilemoveoutput.jpg" style="width: 2154px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20735iEB8EE6E1B52A9757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10473-fetchfilemoveoutput.jpg" alt="10473-fetchfilemoveoutput.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The overall flow used to test:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10474-screen-shot-2016-12-18-at-85911-pm.png" style="width: 2398px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20736i119D02F324EF4E4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10474-screen-shot-2016-12-18-at-85911-pm.png" alt="10474-screen-shot-2016-12-18-at-85911-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:01:06 GMT</pubDate>
    <dc:creator>dpinkston</dc:creator>
    <dc:date>2019-08-18T12:01:06Z</dc:date>
    <item>
      <title>NiFi: FetchFile processor appends new line at end</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160115#M49262</link>
      <description>&lt;P&gt;When you retrieve the content of a file through above processor, in the flowfile we can see a new line character appended at the end.  Is this an expected behavior?  Any reason for this behavior and how it can be avoided?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 17:36:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160115#M49262</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-12-18T17:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: FetchFile processor appends new line at end</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160116#M49263</link>
      <description>&lt;P&gt;FetchFile does not append a new line character if it is not present in the original file.&lt;/P&gt;&lt;P&gt;When I run ListFiles -&amp;gt; FetchFile -&amp;gt; PutFile and view in text editor, the file content is identical among the following files (including new line characters viewable via the text editor):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;original file on disk&lt;/LI&gt;&lt;LI&gt;file contents downloaded from FetchFile (Provenance/Contents)&lt;/LI&gt;&lt;LI&gt;file contents downloaded from PutFile (Provenance/Contents)&lt;/LI&gt;&lt;LI&gt;file put to disk&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;If you are not getting this behavior, please provide details.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 01:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160116#M49263</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-12-19T01:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: FetchFile processor appends new line at end</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160117#M49264</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Sample file:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10468-sample.jpg" style="width: 242px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20737i94742263B54F1D7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10468-sample.jpg" alt="10468-sample.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;NiFi flow:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10467-nifi.jpg" style="width: 528px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20738iD9D515938C3800B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10467-nifi.jpg" alt="10467-nifi.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;After Fetchfile (flowfile content):&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10469-after-fetch-file.jpg" style="width: 335px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20739iF1E76F84D0B02FFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10469-after-fetch-file.jpg" alt="10469-after-fetch-file.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:01:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160117#M49264</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2019-08-18T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: FetchFile processor appends new line at end</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160118#M49265</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11738/ashsskum.html" nodeid="11738" target="_blank"&gt;@Kumar&lt;/A&gt;&lt;P&gt;The NiFi provenance UI adds a newline to your content.  If you go look at the raw file being fetched or moved through the FetchFile processor you will notice that there actually isn't a new line appended.  If I use the same input you do, my provenance UI will show a new line (line 2) after the text "Line1", identical to your screenshot.&lt;/P&gt;&lt;P&gt;However if i look at where the "move" content of the fetchFile Processor is placed,  i see that there isn't a newline.  Also if i do a putFile i notice there isn't a newline either.  Below are some screenshots to show:&lt;/P&gt;&lt;P&gt;Raw file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10470-raw.jpg" style="width: 2288px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20732iC8124983E003F7D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10470-raw.jpg" alt="10470-raw.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Provenance shows a new line (line 2):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10471-provenance.jpg" style="width: 1412px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20733iC638F3CD0F54075F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10471-provenance.jpg" alt="10471-provenance.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output of Putfile:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10472-putfileoutput.jpg" style="width: 2148px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20734i238B0AD61763D115/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10472-putfileoutput.jpg" alt="10472-putfileoutput.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output of having MoveFile in the fetchFile processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10473-fetchfilemoveoutput.jpg" style="width: 2154px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20735iEB8EE6E1B52A9757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10473-fetchfilemoveoutput.jpg" alt="10473-fetchfilemoveoutput.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The overall flow used to test:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10474-screen-shot-2016-12-18-at-85911-pm.png" style="width: 2398px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20736i119D02F324EF4E4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10474-screen-shot-2016-12-18-at-85911-pm.png" alt="10474-screen-shot-2016-12-18-at-85911-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:01:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160118#M49265</guid>
      <dc:creator>dpinkston</dc:creator>
      <dc:date>2019-08-18T12:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: FetchFile processor appends new line at end</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160119#M49266</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11738/ashsskum.html" nodeid="11738"&gt;@Kumar&lt;/A&gt;, as tests by me and &lt;A rel="user" href="https://community.cloudera.com/users/11098/dpinkston.html" nodeid="11098"&gt;@Devin Pinkston&lt;/A&gt; show, it is the actual file content that you need to look at (not the UI).  Thus ... no fears of the processor adding a new line.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 20:12:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-FetchFile-processor-appends-new-line-at-end/m-p/160119#M49266</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-12-19T20:12:25Z</dc:date>
    </item>
  </channel>
</rss>

