concept stream in category spark
appears as: stream, streams, stream

This is an excerpt from Manning's book Spark in Action, Second Edition.
Listing O.1 Output of the stream
2018-11-01 06:27:27.289 -DEBUG --- [ main] ure.getRecords(RecordS ➥ tructure.java:106): Generated data: #1 Briggs,Nadia,Tutt,72,200-29-2107 #2 Case,Alora,Mills,93,126-32-0414 #2 Skylar,Amiyah,Haque,63,338-49-4094 #2 Kaya,Jorge,Christie,40,257-19-6822 #2 Maria,Ramona,Foster,40,652-40-1413 #2 Lilian,Dylan,Kumar,3,177-05-6531 #2 Azalea,Armani,Kahn,103,134-23-7273 #2 Landry,Dustin,Haque,26,743-37-6985 #2 Zahra,Roger,Sanders,97,714-37-6811 #2 2018-11-01 06:27:27.293 - INFO --- [ main] erUtils.write(Record ➥ WriterUtils.java:16): Writing in: /var/folders/v7/3jv0_jbj7lz360_472wvf ➥ j5r0000gn/T/streaming/in/contact_1541068047254.txt #1 2018-11-01 06:27:30.983 -DEBUG --- [ main] ure.getRecords(RecordS ➥ tructure.java:106): Generated data: #1 Vera,Sabrina,Smith,108,438-94-0711 #3 Leif,Kira,Tutt,85,576-09-6749 #3 Shepard,Sridyvia,Kahn,80,739-86-5223 #3 ...
Streams are usually available in two forms: files and network streams. In a file streaming scenario, files are dropped in a directory (sometimes called a landing zone or staging area ; see chapter 1) and Spark takes the files from this directory as they come in. In the second scenario, data is sent over the network.
Listing 10.1 Output of the stream generator
[INFO] Scanning for projects... ... [INFO] --- exec-maven-plugin:1.6.0:java (write-file-in-stream) @ ➥ sparkInAction-chapter10 --- 2020-11-13 12:14:12.496 -DEBUG --- [treamApp.main()] ➥ ure.getRecords(RecordStructure.java:131): Generated data: Aubriella,Silas,Gillet,62,373-69-4505 #1 Reese,Clayton,Kochan,2,130-00-2393 #1 Trinity,Sloan,Vieth,107,202-34-4161 #1 Daphne,Forrest,Huffman,77,250-50-6797 #1 Emmett,Heath,Golston,41,133-17-2450 #1 Alex,Orlando,Courtier,32,290-51-1937 #1 Titan,Deborah,Mckissack,89,073-83-0162 #1 2020-11-13 12:14:12.498 - INFO --- [treamApp.main()] ➥ erUtils.write(RecordWriterUtils.java:21): Writing in: /var/folders/v7/ ➥ 3jv0[...]/T/streaming/in/contact_1542129252485.txt #2 ...