- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Concatenate Date and Time in a signle field DTIME with NIFI
- Labels:
-
Apache NiFi
Created 10-24-2018 10:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using a JSON Records File: HOW to concatenate two attributes (Date and TIME) in a single attribute called DATE_TIME and delete the originals attributes.
Created 10-24-2018 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use Update Record processor and use concat function on Date and TIME attributes then in Record Writer avro schema don't mention the original attributes.
Refer to this link for more details regards to Update Record processor.
(or)
1.Another way is to extract the attribute value from the content and keep as Flowfile Attribute(using ExtractText,EvaluateJson..etc) processors then
2.Use Update Attribute processor and add new property in update attribute processor as
${Date}${TIME}in Delete attributes list property value add your original attribute name.
Created 10-24-2018 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use Update Record processor and use concat function on Date and TIME attributes then in Record Writer avro schema don't mention the original attributes.
Refer to this link for more details regards to Update Record processor.
(or)
1.Another way is to extract the attribute value from the content and keep as Flowfile Attribute(using ExtractText,EvaluateJson..etc) processors then
2.Use Update Attribute processor and add new property in update attribute processor as
${Date}${TIME}in Delete attributes list property value add your original attribute name.
Created 10-24-2018 02:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content