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.

Create File Using NiFi

avatar

I'm looking to create a file named _SUCCESS in a HDFS location containing some attributes. I reckon I could do this using a script processor but is there another way?

1 ACCEPTED SOLUTION
2 REPLIES 2

avatar
Master Mentor

@Breandán Mac Parland If you are looking for a way to generate a file with the name "_SUCCESS", you can use the GenerateFlowFile processor to generate a file with random data as its content. You can the use an UpdateAttribute processor to set the filename to "_SUCCESS" by adding a new property with a property name equal to "filename" and a value of "_SUCCESS".

Matt