Is there any method to use with Pyspark to read a MongoDB collection as an RDD and NOT as a dataframe?

前端 未结 0 539
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 04:10

I use Pyspark to access Mongo. My task is pretty simple: export Mongo to hdfs. Here is my code:

spark = SparkSession \\
    .builder.appName("Mongodb-Exporte         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题