title: Apache NIFI Jon is not terminating automatically
body: <p>I am new to Apache NIFI tool. I am trying to import data from mongo db and put that data into the HDFS. I have created 2 processors one for MongoDB and second for HDFS and I configured them correctly. The job is running successfully and storing the data into HDFS but the job should terminate automatically on success. But it is not, and creating too many files in HDFS. I want to know how to make <strong>On Demand Job</strong> in NIFI and how to determine that a job is successfull.</p>