concept memory in category spark
appears as: memory, memory
Table P.2 Output sinks
| Sink |
Format |
Description |
Example |
| File |
parquet , orc , json , csv |
Outputs to a file of the specific format into a directory. |
Lab #900; see listings P.1, P.2, and P.3. |
| Kafka |
kafka |
Outputs to a Kafka topic. |
Lab #910; see listing P.4. |
| Foreach (single and batch) |
N/A |
Processes each record through a for each . You can process a record at a time or a batch of records. As of Spark v2.4.0, batch processing is still considered experimental. |
Lab #920; see listings P.5, P.6, and P.7. |
| Console |
console |
Dumps the content on the console (stdout). Use with caution and only in debugging mode. |
Lab #1xx, #2xx, and #3xx; see listings in chapter 10. |
| Memory |
memory |
Outputs the content in an in-memory table. Be cautious because the data will be stored in the driver’s memory and, as such, can easily create an out-of-memory error. Use only in debugging mode. |
Lab #930, see listing P.8. |