<?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 Apache nifi merge two different csv file and create combine output to json in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-nifi-merge-two-different-csv-file-and-create-combine/m-p/235238#M197058</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am novice to nifi and want to achieve my task with nifi&lt;/P&gt;&lt;P&gt;Problem statement :&lt;/P&gt;&lt;P&gt;I have two csv file 1) Inventory 2) Rate which are in csv&lt;/P&gt;&lt;P&gt;Both of files have common UNIT_ID (InventoryId)&lt;/P&gt;&lt;P&gt;Input Inventory File&lt;/P&gt;&lt;PRE&gt;UNIT_ID|NAME|TOTAL
1111|ABC|90
1112|XYZ|50&lt;/PRE&gt;&lt;P&gt;Input Rate File&lt;/P&gt;&lt;PRE&gt;UNIT_ID|TYPE|RATE
1111|ONE|900
1111|TWO|5800
1112|RTY|500&lt;/PRE&gt;&lt;P&gt;Output Json&lt;/P&gt;&lt;PRE&gt;[{
"UNIT_ID": "1111",
"NAME": "ABC",
"TOTAL": "90",
"RATES": [{
"TYPE": "ONE",
"RATE": "900"
}, {
"TYPE": "TWO",
"RATE": "5800"
}]
},
{
"UNIT_ID": "1112",
"NAME": "XYZ",
"TOTAL": "50",
"RATES": [{
"TYPE": "RTY",
"RATE": "500"
}]
}
]&lt;/PRE&gt;&lt;P&gt;Please help to find a way to do this, I am able to convert csv to json but stuck with how can I join by unit_id&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2018 12:57:40 GMT</pubDate>
    <dc:creator>chintan2010visa</dc:creator>
    <dc:date>2018-11-02T12:57:40Z</dc:date>
  </channel>
</rss>

