Database Reference
In-Depth Information
should display the first few events in the batch, which will look something like the follow-
ing output:
...
14/11/15 21:02:30 INFO spark.SparkContext: Job finished:
take at DStream.scala:608, took 0.05596 s
-------------------------------------------
Time: 1416078150000 ms
-------------------------------------------
Michael,Headphones,5.49
Frank,Samsung Galaxy Cover,8.95
Eric,Headphones,5.49
Malinda,iPad Cover,7.49
James,iPhone Cover,9.99
James,Headphones,5.49
Doug,iPhone Cover,9.99
Juan,Headphones,5.49
James,iPhone Cover,9.99
Richard,iPad Cover,7.49
...
Tip
Note that you might see different results, as the producer generates a random number of
random events each second.
You can terminate the streaming app by pressing Ctrl + C . If you want to, you can also
terminate the producer (if you do, you will need to restart it again before starting the next
streaming programs that we will create).
Search WWH ::




Custom Search