<?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 : deleteHDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116920#M55039</link>
    <description>&lt;P&gt;That was the intent...  It would only be successful after all files where deleted first.  So only after the last file was removed would the directory deletion be successful.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 22:10:13 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2017-02-21T22:10:13Z</dc:date>
    <item>
      <title>NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116915#M55034</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Do you know how use deleteHDFS to remove empty directories ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:53:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116915#M55034</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-21T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116916#M55035</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363" target="_blank"&gt;@mayki wogno&lt;/A&gt;&lt;P&gt;Make sure the user your NiFi is running as is authorized to delete files and directories in your target HDFS.&lt;/P&gt;&lt;P&gt;The DeleteHDFS processor properties are as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12757-screen-shot-2017-02-21-at-81354-am.png" style="width: 2314px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23038i0C79561192842321/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12757-screen-shot-2017-02-21-at-81354-am.png" alt="12757-screen-shot-2017-02-21-at-81354-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116916#M55035</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-19T10:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116917#M55036</link>
      <description>&lt;P&gt;@Matt : thanks, i've already used this processor for deleleting files, but how use it with listHDFS to delete empty directories.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116917#M55036</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-21T21:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116918#M55037</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363" target="_blank"&gt;@mayki wogno&lt;/A&gt; &lt;/P&gt;&lt;P&gt;FlowFiles generated by the listHDFS processor all have a "path" attribute created on them:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12758-screen-shot-2017-02-21-at-83810-am.png" style="width: 2316px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23037i667F226D491B9726/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12758-screen-shot-2017-02-21-at-83810-am.png" alt="12758-screen-shot-2017-02-21-at-83810-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That attribute could be used to trigger you directory deletion via the DeleteHDFS processor.&lt;/P&gt;&lt;P&gt;What is difficult here is determining when all data has been successfully pulled from an HDFS directory before deleting the directory itself.&lt;/P&gt;&lt;P&gt;You could try using two DeleteHDFS processors in series with one another.  The first DeleteHDFS deletes the files from the target "path" of the incoming FlowFiles and the second deletes the directory (Recursive property set to false).&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:52:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116918#M55037</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-19T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116919#M55038</link>
      <description>&lt;P&gt;@matt: it is partially worked but we received errors for directory non-empty&lt;/P&gt;&lt;PRE&gt;2017-02-21 15:00:28,938 WARN [Timer-Driven Process Thread-8] o.a.nifi.processors.hadoop.DeleteHDFS DeleteHDFS[id=85d330b2-6cdd-1d81-a764-460fe51ef064] Error processing delete for file or directory
org.apache.hadoop.ipc.RemoteException: `/user/ml/apply/toto/03 is non empty': Directory is not empty

&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:02:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116919#M55038</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-21T22:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116920#M55039</link>
      <description>&lt;P&gt;That was the intent...  It would only be successful after all files where deleted first.  So only after the last file was removed would the directory deletion be successful.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:10:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116920#M55039</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-21T22:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116921#M55040</link>
      <description>&lt;P&gt;It worked but it is not clean to have warning in the log file. &lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:20:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116921#M55040</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-21T22:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116922#M55041</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363"&gt;@mayki wogno&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You can reduce or even eliminate the WARN messages by placing a MergeContent processor between your first and second DeleteHDFS processors that merges using "path" as the value to the "Correlation Attribute Name" property.  The resulting merged FlowFile(s) would still have the same "path" that would be used by the second DeleteHDFS to remove your directory.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 23:09:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116922#M55041</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-21T23:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116923#M55042</link>
      <description>&lt;P&gt;@Former Member thanks for your helps.&lt;/P&gt;&lt;P&gt;Do you know if it is possible to move to the next flowfile and send failed flowfile to the next processor ?&lt;/P&gt;&lt;P&gt;I'm trying to send one of failure flowfile from deleteHDFS to RouteText but nothing goes to.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12782-deletehdfs.jpg" style="width: 386px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23036i42229B87718D1E13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12782-deletehdfs.jpg" alt="12782-deletehdfs.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:52:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116923#M55042</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2019-08-19T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116924#M55043</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363"&gt;@mayki wogno&lt;/A&gt; &lt;/P&gt;&lt;P&gt;One thing you could do is set "FlowFile Expiration" on the connection containing the "merged" relationship.   And set the "Available Prioritizers" to " Newest FlowFileFirstPrioritizer". FlowFile expiration is measured against the age of the FlowFile (from creation time to now) and not how long it has been in a particular connection.  If the FlowFile age exceeds this configured value, it is purged from the queue.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 00:37:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116924#M55043</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-22T00:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116925#M55044</link>
      <description>&lt;P&gt;@Matt : thanks. I'm appreciate your helps &lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 16:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116925#M55044</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-02-22T16:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI : deleteHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116926#M55045</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363"&gt;@mayki wogno&lt;/A&gt; &lt;/P&gt;&lt;P&gt;No problem...  If one of the answers help drive you to a solution to your question, please accept that answer to help drive this community forward.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-deleteHDFS/m-p/116926#M55045</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-22T21:54:40Z</dc:date>
    </item>
  </channel>
</rss>

