<?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 : Could not rename file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Could-not-rename-file/m-p/231663#M193507</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/50184/pareshbaldaniya.html" nodeid="50184" target="_blank"&gt;@Paresh Baldaniya&lt;/A&gt;&lt;P&gt;We cannot change the existing filename in HDFS but we can do alternate solution in NiFi as below.&lt;/P&gt;&lt;P&gt;You need to use UpdateAttribute processor before PutParquet processor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Update Attribute &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we are going to update the filename before putparquet processor so that everytime when file goes to putparquet processor will have same file name every time.&lt;/P&gt;&lt;P&gt;Add &lt;STRONG&gt;new property to Update attribute processor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;desired_parquet_filename.prq&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&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="45621-update.png" style="width: 1874px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14922iD625F725E613585D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45621-update.png" alt="45621-update.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;PutParquet:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So we are going to have same filename everytime and in this processor we need to change &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Overwrite Files property to True&lt;/STRONG&gt; //if the same filename exists in the directory processor will replace the existing file with new file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&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="45622-putparquet.png" style="width: 1904px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14923i7EB20C0CF7336B40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45622-putparquet.png" alt="45622-putparquet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1.GetFile
2.UpdateAttribute //change the filename by adding filename property
3.PutParquet //change the Overwrite files property to true&lt;/PRE&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of errors.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:35:37 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T00:35:37Z</dc:date>
    <item>
      <title>Nifi : Could not rename file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Could-not-rename-file/m-p/231662#M193506</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;When I am trying to Overwriting File then getting below error&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/45620-filenotreplaced.png"&gt;filenotreplaced.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;is there any alternative solution to "replace"(Delete existing "parquet" file and put new file )&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 01:49:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Could-not-rename-file/m-p/231662#M193506</guid>
      <dc:creator>paresh_baldaniy</dc:creator>
      <dc:date>2017-12-29T01:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi : Could not rename file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Could-not-rename-file/m-p/231663#M193507</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/50184/pareshbaldaniya.html" nodeid="50184" target="_blank"&gt;@Paresh Baldaniya&lt;/A&gt;&lt;P&gt;We cannot change the existing filename in HDFS but we can do alternate solution in NiFi as below.&lt;/P&gt;&lt;P&gt;You need to use UpdateAttribute processor before PutParquet processor.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Update Attribute &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we are going to update the filename before putparquet processor so that everytime when file goes to putparquet processor will have same file name every time.&lt;/P&gt;&lt;P&gt;Add &lt;STRONG&gt;new property to Update attribute processor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;desired_parquet_filename.prq&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&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="45621-update.png" style="width: 1874px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14922iD625F725E613585D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45621-update.png" alt="45621-update.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;PutParquet:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So we are going to have same filename everytime and in this processor we need to change &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Overwrite Files property to True&lt;/STRONG&gt; //if the same filename exists in the directory processor will replace the existing file with new file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Configs:-&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="45622-putparquet.png" style="width: 1904px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14923i7EB20C0CF7336B40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45622-putparquet.png" alt="45622-putparquet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;1.GetFile
2.UpdateAttribute //change the filename by adding filename property
3.PutParquet //change the Overwrite files property to true&lt;/PRE&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of errors.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:35:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Could-not-rename-file/m-p/231663#M193507</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T00:35:37Z</dc:date>
    </item>
  </channel>
</rss>

