I'm consuming data from Kafka topic with JSON data format using Spark Structured Streaming code in Scala and writing the data into another kafka sink.
We are submitting the job in cluster mode, and we are trying to check the no. of messages coming in one batch but we are unable to see the no. of messages coming in a batch being written into the logs.
Is it possible to find out the no, of messsages coming in a batch to be written into the log file.