I am using flume-ng to transfer data from application server to hdfs in cluster. My problem is "create new log file in hdfs, when file being used reaches size of 2Kb, and start ingesting data into it." But script i am using, below, doesn't do this. It creates a new file whenever a new event is generated. So please tell me how to configure below code, so that file in hdfs should be closed when size reaches 2Kb and start ingesting data into new one.