Flume and Spark Streaming integration - blank files

Hello Team,

This is regarding Flume and Spark Streaming integration.
Blank files are getting generated in HDFS after submitting the spark-submit command.

spark-submit command:

$ spark-submit --master yarn --conf spark.ui.port=12890 --jars "/usr/hdp/2.5.0.0-1245/spark/lib/spark-streaming-flume_2.10-1.6.2.jar,/usr/hdp/2.5.0.0-1245/flume/lib/spark-streaming-flume-sink_2.10-1.6.2.jar,/usr/hdp/current/flume-server/lib/flume-ng-sdk-1.5.2.2.6.5.0-292.jar" src/main/python/StreamingFlumeDepartmentCount.py gw03.itversity.com 8123 /user/neogia01/streamingflumedepartmentcount/cnt-

hadoop fs -ls command:

-rw-r--r--   2 neogia01 hdfs          0 2020-02-08 14:40 /user/neogia01/streamingflumedepartmentcount/cnt--1581190830000/part-00000
-rw-r--r--   2 neogia01 hdfs          0 2020-02-08 14:40 /user/neogia01/streamingflumedepartmentcount/cnt--1581190830000/part-00001