Handling empty batches in Spark streaming | Hacker News Reader