Member since
01-14-2021
7
Posts
0
Kudos Received
0
Solutions
08-02-2021
04:53 PM
@Shu_ashu Which processor do you use to get this attributes? Is it UpdateAttribute? As you can see in above output screenshot both regex matches and gives same results once we extract all the contents as attributes then you can use expression language like ${Attribute 1} to get 1096 value ..etc.
... View more
04-12-2021
06:28 PM
All, I would like to create a new record based on the GroupTypeDescription. The value for this key could be "Individual" or "Enitity". Any help is appreciated INPUT { "ConsolidatedList": [ { "AliasType": "Primary", "AliasTypeName": "AKA", "Country": null, "CountryOfBirth": "Syria", "GroupStatus": "Asset Tweaking", "GroupTypeDescription": "Individual", "ID": 33233, "LastUpdated": "2021-03-15T00:00:00", "LastUpdatedDay": 15, "name1": "Larry", "name2": "Dan" }, { "AliasType": "AKA", "AliasTypeName": "AKA", "Country": null, "CountryOfBirth": "Afghan", "GroupStatus": "Asset Freeze Targets", "GroupTypeDescription": "Entity", "ID": 33233, "LastUpdated": "2021-03-15T00:00:00", "LastUpdatedDay": 15, "name1": "Luna", "name2": "Daniel" } ] } EXPECTED OUTPUT { "RecordType": ["Entity","Individual"], "Records": [ { "_id": "1", // Counter "RecordType": "Entity", "Names": [ { "_id": "1", //counter "OtherName": "", "UnparsedName": "", "FirstName": "Luna", "LastName": "Daniel", "AliasType": "Primary" } ] }, { "_id": "2", "RecordType": "Individual", "Names": [ { "_id": "1", "OtherName": "", "UnparsedName": "", "FirstName": "Larry", "LastName": "Dan", "AliasType": "AKA" } ] } ] } SPEC So far [ { "operation": "shift", "spec": { "ConsolidatedList": { "*": { "GroupTypeDescription": "Records[0].RecordsType[&1]", "# ": "Records[0].Names.[&1].Other Name", "# ": "Records[0].Names.[&1].UnparsedName", "AliasType": "Records[0].Names.[&1].NameType" } } } } ] I need to split record into objects based on the recordType. Please ignore the first name and last name.
... View more
Labels:
- Labels:
-
Apache NiFi
01-18-2021
09:53 AM
Hi Dominika, I get error an error when you paste output link into my google browser cloudbreak-controller-yv2j46nvuqfic.eastus.cloudapp.azure.com refused to connect. Please let me know if this is expected, and how to get around this. Thanks, Lawrence
... View more
01-14-2021
03:26 PM
Can anyone point to Apachi Nifi setup on HDInsight, and ListeningHTTP set up
... View more
Labels:
- Labels:
-
Apache NiFi