I want to extract all the records from my table 'nifitest' in my SQL database called customers. I am attaching the template for your help guys. I am facing the following problems: Once I run the 'QueryDatabaseTable' processor i get the flowfiles in the queue but when i empty the queue and try to re-run the 'QueryDatabaseTable' processor I cannot fetch the records in the queue. How can I fix this problem?
The whole idea of the flow is to extract records from mySql database and store the file locally on my Desktop.
I have used the template on following website to achieve this and changed my tablename and Database connection pooling service as per my requirement:-
https://www.batchiq.com/database-extract-with-nifi.html
Also, After the mergecontent I am getting the file as file Type. Which processor to use in order to store the merged file as CSV file Type (All records to be stored as Test.csv instead of file Type) I was using 'UpdateAttribute' processor and adding property 'filename' and value as 'Test.csv' but in the output file I only see one record not all the records. How to fix this?
Thanks!