What do you understand by receivers in Spark Streaming ?
Answer Posted / Kumar Abhimanyu Singh
Receivers are the entry points for data input in Apache Spark Streaming. They receive streaming data from various sources like Kafka, Flume, Twitter, or TCP sockets and convert them into DStreams (Discretized Streams) that can be processed using Spark's transformations and actions.nFor example, the `SparkStreaming.stream()` method creates a new Spark Streaming context, which can then receive data from a Kafka topic using the `KafkaUtils.createDirectStream()` function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers