February 2016
Beginner to intermediate
326 pages
7h 46m
English
In this section, we will code and execute our first Spark Streaming job in Scala. We will also simulate the streaming data by creating a temporary stream.
Perform the following steps to create a stream producer which continuously reads the input data provided by the user from the console and then further submits that data to a socket:
Spark-Examples project and create a new Scala package and class named chapter.nine.StreamProducer.java.StreamProducer.java and add the following piece of code:import java.net.*; import java.io.*; public class StreamProducer { public static void main(String[] args) { if (args == null || args.length < 1) { System.out.println("Usage ...Read now
Unlock full access