June 2020
Intermediate to advanced
576 pages
15h 41m
English
This appendix explains how to use the streaming data generator introduced in chapter 10.
By definition, streaming data cannot be found in a file. Streaming data can be dropped as a file into a directory or via a network. You need to generate streaming data.
To illustrate streaming data, I built a small generator API, which you need to call in your application.
Lab Examples from this appendix are available in GitHub at https://github.com/jgperrin/net.jgp.books.spark.ch10 .
The following application will generate up to 10 records at a time, in an interval between 2.5 seconds and 7.5 seconds, for 60 seconds. The record will simulate a person with ...
Read now
Unlock full access