Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Nifi:Can i use FetchHdfs Without ListHdfs?

avatar

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

thank you