<?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 merge multiple HDFS files using Nifi Processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385812#M245845</link>
    <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 09:44:00 GMT</pubDate>
    <dc:creator>s198</dc:creator>
    <dc:date>2024-04-01T09:44:00Z</dc:date>
    <item>
      <title>How to merge multiple HDFS files using Nifi Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385717#M245807</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have a requirement to merge files in a specific HDFS path. The merged file should also be created in the same HDFS path but with a different name. Could you please suggest how we can achieve this using the Nifi Processor?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 05:51:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385717#M245807</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-03-29T05:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple HDFS files using Nifi Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385739#M245808</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109766"&gt;@s198&lt;/a&gt;&amp;nbsp;NiFi has no ability to merge files remotely.&amp;nbsp; NiFi would need to consume all the files (&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hadoop-nar/1.25.0/org.apache.nifi.processors.hadoop.ListHDFS/index.html" target="_blank"&gt;ListHDFS&lt;/A&gt; --&amp;gt; &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hadoop-nar/1.25.0/org.apache.nifi.processors.hadoop.FetchHDFS/index.html" target="_blank"&gt;FetchHDFS&lt;/A&gt;), then merge the content of those FlowFiles (&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.25.0/org.apache.nifi.processors.standard.MergeContent/index.html" target="_blank"&gt;MergeContent&lt;/A&gt; or &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.25.0/org.apache.nifi.processors.standard.MergeRecord/index.html" target="_blank"&gt;MergeRecord&lt;/A&gt;), then use &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-update-attribute-nar/1.25.0/org.apache.nifi.processors.attributes.UpdateAttribute/index.html" target="_blank"&gt;UpdateAttribute&lt;/A&gt; to set desired filename on merged file, and finally write the merged file back to HDFS using &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hadoop-nar/1.25.0/org.apache.nifi.processors.hadoop.PutHDFS/index.html" target="_blank"&gt;PutHDFS&lt;/A&gt; processor.&lt;BR /&gt;&lt;BR /&gt;If you are using a NiFi Cluster, you would need to do all this merging on one node of the cluster, NiFi nodes can only execute against the FlowFiles present on that one specific node.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 13:51:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385739#M245808</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-03-29T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge multiple HDFS files using Nifi Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385812#M245845</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 09:44:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-merge-multiple-HDFS-files-using-Nifi-Processor/m-p/385812#M245845</guid>
      <dc:creator>s198</dc:creator>
      <dc:date>2024-04-01T09:44:00Z</dc:date>
    </item>
  </channel>
</rss>

