The connector was compiled with mongo-java-driver 3.2.2 which is not compatible with MongoDB 3.4 : https://docs.mongodb.com/ecosystem/drivers/java/
It should be compiled with new version of mongo-java-driver 3.4.2
https://mvnrepository.com/artifact/org.mongodb.spark/mongo-spark-connector_2.10/2.0.0