Transformations के लिए तैयारी करें
वीडियो में बताया गया था कि PySpark में transformations करने से पहले, आपको डेटा को 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")
यह अभ्यास पाठ्यक्रम का हिस्सा है
Introduction to Data Engineering
इंटरैक्टिव व्यावहारिक अभ्यास
हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें
अभ्यास शुरू करें