关注 spark技术分享,
撸spark源码 玩spark最佳实践

JDBC Data Source

JDBC Data Source

Spark SQL supports loading data from tables using JDBC.

JDBC

The JDBC API is the Java™ SE standard for database-independent connectivity between the Java™ programming language and a wide range of databases: SQL or NoSQL databases and tabular data sources like spreadsheets or flat files.

Read more on the JDBC API in JDBC Overview and in the official Java SE 8 documentation in Java JDBC API.

As a Spark developer, you use DataFrameReader.jdbc to load data from an external table using JDBC.

These one-liners create a DataFrame that represents the distributed process of loading data from a database and a table (with additional properties).

赞(0) 打赏
未经允许不得转载:spark技术分享 » JDBC Data Source
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏