为转换做准备
正如视频所述,在使用 PySpark 做转换之前,您需要先把数据读入 Spark 框架。您已经看到如何用 PySpark 完成这一步。请从下面选择正确的代码。
(A)
spark.read.jdbc("jdbc:postgresql://repl:password@localhost:5432/pagila",
"customer")
(B)
spark.read.jdbc("jdbc:postgresql://localhost:5432/pagila",
"customer",
{"user":"repl","password":"password"})
(C)
spark.read.jdbc("jdbc:postgresql://repl:password@localhost:5432/pagila/customer")
本练习是课程的一部分
