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.

Extract text from text message and update the filename

Solved Go to solution

Extract text from text message and update the filename

New Contributor

Hello,

I have a websocket on which I receive a text message (listenWebsocket Processor) , I want to put the whole text message as an attribute into the FetchFile processor.

I want to call the value of this extracted attribute in the filepath of the processor?  ExtractText works well, the data provenance shows that there's an new attribute after ExtractText has run, but the attribute value is not set into the file path in the FetchFile Processor ?? What's wrong, did I miss some configuration? A custom attribute is called ${attributename} , right?

Thanks a lot for your help

Henriette

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Extract text from text message and update the filename

New Contributor

The solution is that, after ExtractText I need an UpdateAttribute Processor which stores the attribute from ExtractText permanently.

2 REPLIES 2

Re: Extract text from text message and update the filename

New Contributor

The solution is that, after ExtractText I need an UpdateAttribute Processor which stores the attribute from ExtractText permanently.

Highlighted

Re: Extract text from text message and update the filename

Master Guru

@Jette 

 

There is no need for the updateAttribute processor here, unless there are some missing details to this issue.

The extractText processor already permanently adds any created attribute to the FlowFile it outputs.  The dynamic property name used becomes the FlowFile attribute name.

 

Matt

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