Support Questions

Find answers, ask questions, and share your expertise

Nifi:Can i use FetchHdfs Without ListHdfs?

avatar
Contributor

Can i use fetchHdfs without listhdfs( in front of it) or there are some logic implemented in fetchHdfs which make this process impossible in case we doesn't have list of filenames?

1 ACCEPTED SOLUTION

avatar
Master Guru
@sally sally

Yes you can use fetchHdfs processor but you need to have ${path},${filename} attributes associated with the flowfile then FetchHDFS processor will get those attributes and works as expected.

To add those attributes associated with the flowfile use UpdateAttribute or extracttext...etc processors to add ${path},${filename} attributes to the flowfile.

View solution in original post

2 REPLIES 2

avatar
Master Guru
@sally sally

Yes you can use fetchHdfs processor but you need to have ${path},${filename} attributes associated with the flowfile then FetchHDFS processor will get those attributes and works as expected.

To add those attributes associated with the flowfile use UpdateAttribute or extracttext...etc processors to add ${path},${filename} attributes to the flowfile.

avatar
Contributor

thank you