<?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 How to merge many json files in one csv file in NIFI? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-many-json-files-in-one-csv-file-in-NIFI/m-p/374904#M242186</link>
    <description>&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;hi, i have the following problem - i am creating myself quite a few json files via AttributeToJSON processor. Here, as destination, I have set flow-file content. Now I would like to combine them into one csv file. I used MergeContent in my flow first to combine them into one json and then ConvertRecord to turn it into csv. However, it does not create one file for me, but many, I do not know if the problem lies in the MergeContent processor or ConvertRecord. Or should I approach it differently?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MWM_0-1691070917790.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38159iD57567859A2CDEB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MWM_0-1691070917790.png" alt="MWM_0-1691070917790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are my settings in MergeContent&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 13:56:14 GMT</pubDate>
    <dc:creator>MWM</dc:creator>
    <dc:date>2023-08-03T13:56:14Z</dc:date>
    <item>
      <title>How to merge many json files in one csv file in NIFI?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-many-json-files-in-one-csv-file-in-NIFI/m-p/374904#M242186</link>
      <description>&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;hi, i have the following problem - i am creating myself quite a few json files via AttributeToJSON processor. Here, as destination, I have set flow-file content. Now I would like to combine them into one csv file. I used MergeContent in my flow first to combine them into one json and then ConvertRecord to turn it into csv. However, it does not create one file for me, but many, I do not know if the problem lies in the MergeContent processor or ConvertRecord. Or should I approach it differently?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MWM_0-1691070917790.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38159iD57567859A2CDEB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MWM_0-1691070917790.png" alt="MWM_0-1691070917790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are my settings in MergeContent&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 13:56:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-merge-many-json-files-in-one-csv-file-in-NIFI/m-p/374904#M242186</guid>
      <dc:creator>MWM</dc:creator>
      <dc:date>2023-08-03T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge many json files in one csv file in NIFI?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-merge-many-json-files-in-one-csv-file-in-NIFI/m-p/374969#M242212</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105912"&gt;@MWM&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;MergeContent is probably not the processor you want to use to merge your JSON files as it will simply concatenate them together instead of creating one larger json.&amp;nbsp; You should use the MergeRecord processor instead.&amp;nbsp; In this processor you can specify a JsonTreeReader to read your source Json files and then use a CSVRecordSetWriter to output merged CSV file(s).&amp;nbsp; The rest of the MergeRecord processor configuration will control how many source Json records are added in to a single output CSV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:37:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-merge-many-json-files-in-one-csv-file-in-NIFI/m-p/374969#M242212</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-04T20:37:19Z</dc:date>
    </item>
  </channel>
</rss>

