July 2017
Intermediate to advanced
796 pages
18h 55m
English
A new StreamingContext can be created in two ways:
StreamingContext(sparkContext: SparkContext, batchDuration: Duration) scala> val ssc = new StreamingContext(sc, Seconds(10))
StreamingContext(conf: SparkConf, batchDuration: Duration) scala> val conf = new SparkConf().setMaster("local[1]") .setAppName("TextStreams") scala> val ssc = new StreamingContext(conf, Seconds(10))
Read now
Unlock full access