题目详情
单选题 使用Spark从MySQL读取数据时,以下哪个是正确 的加载数据的方法?( )
A. `spark.read.jdbc("jdbc:mysql://localhost:3306/db", "table",properties)`
B. `sc.read.jdbc("jdbc:mysql://localhost:3306/db", "table",properties)`
C. `rdd.read.jdbc("jdbc:mysql://localhost:3306/db", "table",properties)`
D. `sqlContext.read.mysql("jdbc:mysql://localhost:3306/db", "table",properties)`

学科:23-24-2Spark开发技术
时间:2025-04-02 01:51:20
相关题目
相关作业
