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