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.

NIFI : MultiDirectories for ListHDFS

Re: NIFI : MultiDirectories for ListHDFS

Explorer

@Bryan Bende, in the same way with routeOnAttribute processor, it is possible to regular expression.

In my dataflow listHDFS send flowfile to routeOnAttribute and i need check all subpath list above to route correctly all files in deleteHDFS.

At this moment for each directory I need to create an attribute to match a subpath of directory, so in my case I have created 35 attributes.

13725-attribute-routeonattribute.jpgattribute-routeonattribute.jpg(62.3 kB)

Highlighted

Re: NIFI : MultiDirectories for ListHDFS

Can you use the "matches" function in expression language?

It should allow any regular expression:

https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#matches

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