Support Questions

Find answers, ask questions, and share your expertise

Create File Using NiFi

avatar
Contributor

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