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

Samebug tips

  1. ,

    Delete the corrupted index files and on startup, Kafka server will rebuild it.

Solutions on the web

via Stack Overflow by gsamaras
, 1 year ago
requirement failed
via apache.org by Unknown author, 2 years ago
via apache.org by Unknown author, 2 years ago
via jianshu.com by Unknown author, 2 years ago
via apache.org by Unknown author, 2 years ago
java.lang.IllegalArgumentException: requirement failed	at scala.Predef$.require(Predef.scala:221)	at org.apache.spark.mllib.util.MLUtils$.fastSquaredDistance(MLUtils.scala:330)	at org.apache.spark.mllib.clustering.KMeans$.fastSquaredDistance(KMeans.scala:595)	at org.apache.spark.mllib.clustering.KMeans$$anonfun$findClosest$1.apply(KMeans.scala:569)	at org.apache.spark.mllib.clustering.KMeans$$anonfun$findClosest$1.apply(KMeans.scala:563)	at scala.collection.mutable.ArraySeq.foreach(ArraySeq.scala:73)	at org.apache.spark.mllib.clustering.KMeans$.findClosest(KMeans.scala:563)	at org.apache.spark.mllib.clustering.KMeans$.pointCost(KMeans.scala:586)	at org.apache.spark.mllib.clustering.KMeansModel$$anonfun$computeCost$1.apply(KMeansModel.scala:88)	at org.apache.spark.mllib.clustering.KMeansModel$$anonfun$computeCost$1.apply(KMeansModel.scala:88)	at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)	at scala.collection.Iterator$class.foreach(Iterator.scala:727)	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)	at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:144)	at scala.collection.AbstractIterator.foldLeft(Iterator.scala:1157)	at scala.collection.TraversableOnce$class.fold(TraversableOnce.scala:199)	at scala.collection.AbstractIterator.fold(Iterator.scala:1157)	at org.apache.spark.rdd.RDD$$anonfun$fold$1$$anonfun$19.apply(RDD.scala:1086)	at org.apache.spark.rdd.RDD$$anonfun$fold$1$$anonfun$19.apply(RDD.scala:1086)	at org.apache.spark.SparkContext$$anonfun$36.apply(SparkContext.scala:1951)	at org.apache.spark.SparkContext$$anonfun$36.apply(SparkContext.scala:1951)	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)	at org.apache.spark.scheduler.Task.run(Task.scala:89)	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:227)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)