Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

replaceText processor in Java Minifi version 0.5

replaceText processor in Java Minifi version 0.5

New Contributor

Hello,

I noticed an odd behavior for Replacetext processor in Java Minifi version 0.5

Processor: ReplaceText

Flow Content : <133>mq-otqfw1

Replacement Strategy : regex replace

Search Value : (^<(\d+)>.*$)

Replacement Value : ${'$2':divide(8)} ${'$2':mod(8)}

This config works in Nifi and all previous versions of Minifi, and the output is :

16 5

In Minifi version 0.5, the output always misses the second value:

16

please let me know if I miss anything in the syntax?

1 REPLY 1

Re: replaceText processor in Java Minifi version 0.5

@minaa_khalili 

I see the same behavior in my testing.  This was a known issue with the ReplaceText processor. The only way I can get it to work the same is to insert a line return in between the regex's.  Example image below:

Screen Shot 2019-12-17 at 2.24.47 PM.png

The issue was resolved in the next release of MiNiFi.

 

Don't have an account?
Coming from Hortonworks? Activate your account here