Spark Starter Guide 4.13: Importing Data from a Relational Database (MySQL)
Briefly

Relational databases are a proven way to store tabular, row-format data - especially for application databases and other operational use cases. Often though, these contain data useful for analytics and research.
Let's showcase how Spark can do just that. Say we have access to a MySQL database; let's query some data from it using Spark and store the results in a DataFrame for future use.
Read at Medium
[
add
]
[
|
|
]