I have MongoDb in EC2 instance and try to connect it with pyspark but it gives me error : IllegalArgumentException: requirement failed: Invalid uri.
Here my code: