<?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 move json data between hdfs directories in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/nifi-move-json-data-between-hdfs-directories/m-p/281138#M209192</link>
    <description>&lt;P&gt;This has to be achieved only with puthdfs and not movehdfs.&lt;/P&gt;&lt;P&gt;The following nifi flow worked and issue resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;listhdfs-&amp;gt;updateattribute-&amp;gt;puthdfs-&amp;gt;deletehdfs&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 14:51:15 GMT</pubDate>
    <dc:creator>Deenag</dc:creator>
    <dc:date>2019-10-23T14:51:15Z</dc:date>
    <item>
      <title>nifi move json data between hdfs directories</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-move-json-data-between-hdfs-directories/m-p/280942#M209061</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am moving data between hdfs directories to pick the latest updated flow file. The requirement is to move the merged json files. The code should verify on the source hdfs directories to pick the json files and process to the target along with the sub folders if the target directory doesn't have the directories available.&lt;/P&gt;&lt;P&gt;Source hdfs path:-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/data/json/incoming/year=1970/month=01/day=18/$flow-file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Target hdfs path:-&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/data/json/final/$path/$flow-file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am currently using listhdfs-&amp;gt;updateattribute-&amp;gt;movehdfs&lt;/P&gt;&lt;P&gt;In update attribute I have provided&amp;nbsp;&lt;/P&gt;&lt;P&gt;property(filename): ${path}.substringAfterLast("/")&lt;/P&gt;&lt;P&gt;path:&amp;nbsp;${filename:substringBeforeLast('/')}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Movehdfs output directory has&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output Directory - /data/json/final/${path}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please verify the flow and help to resolve the issue as I am unable to pull the files into target using movehdfs along with copying the sub-folders if it not already present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 22:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-move-json-data-between-hdfs-directories/m-p/280942#M209061</guid>
      <dc:creator>Deenag</dc:creator>
      <dc:date>2019-10-21T22:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: nifi move json data between hdfs directories</title>
      <link>https://community.cloudera.com/t5/Support-Questions/nifi-move-json-data-between-hdfs-directories/m-p/281138#M209192</link>
      <description>&lt;P&gt;This has to be achieved only with puthdfs and not movehdfs.&lt;/P&gt;&lt;P&gt;The following nifi flow worked and issue resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;listhdfs-&amp;gt;updateattribute-&amp;gt;puthdfs-&amp;gt;deletehdfs&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 14:51:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/nifi-move-json-data-between-hdfs-directories/m-p/281138#M209192</guid>
      <dc:creator>Deenag</dc:creator>
      <dc:date>2019-10-23T14:51:15Z</dc:date>
    </item>
  </channel>
</rss>

