Support Questions

Find answers, ask questions, and share your expertise

NIFI : MultiDirectories for ListHDFS

avatar
Rising Star

hi all,

I see that listHDFS processor has Directory parameter support Expression Language

So do you know how set mutli-directories for one processor listHDFS ?

Directory : /tmp/{toto|truc} 

Thanks

11 REPLIES 11

avatar
Rising Star

@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)

avatar
Master Guru

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