In NiFi, PutHDFS processor is used to ingest data into HDFS directory. There are 100+ variants of file types possible (all in json format). The json starts with file type. This file type should be made the file name prefix. How to achieve this? Please advise.
{
"FILE_TYPE_1": [
{
"ORG_FIELD_1" : 38,
"ORG_FIELD_2" : 1,
"ORG_FIELD_3" : "Per Km",
"ORG_FIELD_4" : "x1",
"ORG_FIELD_5" : 1,
"ORG_FIELD_6" : 10.0,
"ORG_FIELD_7" : 0.0,
"ORG_FIELD_8" : 0.0,
"ORG_FIELD_9" : 96.0,
"ORG_FIELD_10" : 0
}
]
}