omer
omer

Reputation: 187

nifi extractText Processor issue

I am trying to read lines from splitText processor and applying regex to filter rows. However, data is queued before SplitText and not going inside ExtractText Processor. Below are the snapshots of regex (where I am filter out those rows which have 18th filed value in (BT, CV7,CV30) but it never reaches to that point.

In fact the extractText processor does not even start or gets deleted. Its stuck

enter image description here

and the snapshot of ExtractText settings enter image description here

Upvotes: 1

Views: 3089

Answers (1)

Val Bonn
Val Bonn

Reputation: 1189

There is definitively something wrong with your Regular Expression. I cannot point exactly what is wrong, but your example blocked my NiFi :) I cannot stop/start my ExtractText processor, I cannot purge the incoming queue. We could already guess that on your screenshot, with the "Active Tasks" icon which is visible.

Nevertheless, I think I achieved what you tried to do with these regular expressions :

(?:[^\,]*\,){18}BT
(?:[^\,]*\,){18}CV7
(?:[^\,]*\,){18}CV30

The lines that contain BT, CV7 or CV30 at the expected position will be routed to the matched relation.

Upvotes: 1

Related Questions