Member since
10-27-2016
81
Posts
10
Kudos Received
0
Solutions
05-11-2017
07:33 PM
@Matt Clarke I got the answer. I can do something as below to extract the specific field value. For example for fisrtname, I do as below in ExtractText processor .*&firstname=(.*?)&.* but I see the copies of the attributes like firstname, firstname.0, firstname.1 etc. How can I mitigate the creation of rest of attributes and generate only "firstname".
... View more
05-11-2017
07:06 PM
@Matt Clarke the structure or the fields order is not consistent. I would like to put it this way, there are lot number of fields separated by '&' in the flow file and I just want to extract specific fields from the flow file content like &testfield=testfieldvalue&testafield=testafieldvalue&... m number of fields...&firstname=firstnamevalue&... n number of fields ... &lastname=lastnamevalue& .... x number of fields ... &email=testemail@email.com& .... y number of fields .... &address=test address&...z number of fields .... & Hope this gives better picture!
... View more
05-11-2017
06:50 PM
Just for tagging! @Matt Clarke
... View more
05-11-2017
06:49 PM
yes, i want to extract values of firstname, lastname, email, address we can assume like below. If the flow files content is as &firstname=testfirstname&lastname=testlastname&email=testemail@email.com&address=test address& I want to extract XXXX in regex &firstname=XXXXXXXx&.* as value for firstname field extract XXXXXx in regex .*&lastname=XXXXX&.* as value for lastname etc.
... View more
05-11-2017
06:46 PM
sorry, its a typo mistake. firstname=testfirstname&lastname=testlastname&email=testemail@email.com&address=test address.
... View more
05-11-2017
05:57 PM
@Sonu Sahi thanks for the response. The approach mentioned above does not give the ideal solution for my requirement.
... View more
05-11-2017
05:55 PM
@Matt Clarke: thanks for the solution and it works specifically to the example of field_1, field_2. Actually my intention is, I have couple of fields as part of flow file which are separated by character &. My requirement is I would like to extract the specific field based on field name. I have been trying to achieve that experimenting regular expressions but could not able to succeed so far. Infact I ma trying to understand the regular expressions you specified but could not get hold of it. can you please let me know how to extract the fields in the flow file whose content is say firstname=testfirstname&lastname=testlastname,email=testemail@email.com,address=test address. I want to extract attributes firstname, lastname, email, address with appropriate values.
... View more
05-10-2017
08:58 PM
I have two scenario's where I need help to extract the values 1) Flow file have the content as below *********content of flow file*********** field_1=field1value&feild_2=field2value&field_3=field3value&...&fieild_n=fieldnvalue ********End of Content*************** I want to extract values of field1, field2, field3 ... field_n and store them to 3 attributes. Can I get regular expression example to do that using ExtractText in Nifi. or say I want to extract value of field_x (1 < x < n) attribute from above list, how can I do that ? 2) If I have an attribute with value as below **********attrbitue vlaue*********** field_1=field1value&feild_2=field2value&field_3=field3value&...&fieild_n=fieldnvalue *********************************** I want to extract value of field_x (1 < x < n) attribute from above list, how can I do that ?
... View more
Labels:
- Labels:
-
Apache NiFi
05-05-2017
07:47 AM
Doing the two changes as said by @Amit Nandi above worked for me!
... View more
04-10-2017
10:52 AM
@SBandaru: i am facing the same issue. running the spark submit on local is working. However running the same in cluster mode from other instance is failing throwing the same error. Are you able to resolve the issue, if so ca you please post the steps you did to resolve the issue!
... View more
- « Previous
- Next »