Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Weng Shao Fong, 1 year ago
The DefaultMongoPartitioner requires MongoDB >= 3.2
java.lang.UnsupportedOperationException: The DefaultMongoPartitioner 
 requires MongoDB >= 3.2	at com.mongodb.spark.rdd.partitioner.DefaultMongoPartitioner.partitions(DefaultMongoPartitioner.scala:58)	at com.mongodb.spark.rdd.MongoRDD.getPartitions(MongoRDD.scala:137)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:248)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:246)	at scala.Option.getOrElse(Option.scala:121)	at org.apache.spark.rdd.RDD.partitions(RDD.scala:246)	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:248)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:246)	at scala.Option.getOrElse(Option.scala:121)	at org.apache.spark.rdd.RDD.partitions(RDD.scala:246)	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:248)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:246)	at scala.Option.getOrElse(Option.scala:121)	at org.apache.spark.rdd.RDD.partitions(RDD.scala:246)	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:248)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:246)	at scala.Option.getOrElse(Option.scala:121)	at org.apache.spark.rdd.RDD.partitions(RDD.scala:246)	at org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:248)	at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:246)	at scala.Option.getOrElse(Option.scala:121)	at org.apache.spark.rdd.RDD.partitions(RDD.scala:246)	at org.apache.spark.sql.execution.SparkPlan.executeTake(SparkPlan.scala:326)	at org.apache.spark.sql.execution.CollectLimitExec.executeCollect(limit.scala:39)	at org.apache.spark.sql.Dataset$$anonfun$org$apache$spark$sql$Dataset$$execute$1$1.apply(Dataset.scala:2183)	at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:57)	at org.apache.spark.sql.Dataset.withNewExecutionId(Dataset.scala:2532)