- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to extract particular column data and assign to custom attributes using Nifi?
- Labels:
-
Apache NiFi
Created ‎01-12-2021 07:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a scenario where I will be reading csv file, from that i have extract column value(s) and assign to custom attribute(s). From custom attributes I have to form a json file.
I have gone through the extractText processor we need to pass regular expression to get the text, not quite understanding with that, is there any better and easy way to get above requirement?
sample csv file.
ID | Description | Status | project |
8075 | John | Done | xyz100 |
Extract ID and project and create custom attributes like projectID=ID and modelProject=project.
Thanks
--Murali
Created ‎01-13-2021 04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you already think about to transform your csv to json and then rebuild it with JOLT?
