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

org.apache.spark.SparkException: A master URL must be set in your configuration	at org.apache.spark.SparkContext.(SparkContext.scala:401)	at org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:59)	at com.ts.clustering.TrainModel.(TrainModel.java:35)	at com.ts.clustering.TrainModel$2.call(TrainModel.java:71)	at com.ts.clustering.TrainModel$2.call(TrainModel.java:67)	at org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1.apply(JavaPairRDD.scala:1015)	at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)	at scala.collection.Iterator$$anon$14.hasNext(Iterator.scala:389)	at org.apache.spark.storage.MemoryStore.unrollSafely(MemoryStore.scala:284)