java.lang.IllegalArgumentException: requirement failed: RDD[Rating] in PreparedData cannot be empty. Please check if DataSource generates TrainingData and Preprator generates PreparedData correctly.

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Evgeniy
, 1 year ago
requirement failed: RDD[Rating] in PreparedData cannot be empty. Please check if DataSource generates TrainingData and Preprator generates PreparedData correctly.
via GitHub by i8run
, 2 months ago
requirement failed: index out of bound
via GitHub by Sciss
, 1 year ago
requirement failed
via Stack Overflow by mvg
, 9 months ago
requirement failed: Columns not found in com.sample.practice.Names: [insert_date]
via Google Groups by Harsha Reddy, 1 year ago
requirement failed: users in PreparedData cannot be empty. Please check if DataSource generates TrainingData and Preprator generates PreparedData correctly.
via Google Groups by Pat Ferrel, 1 year ago
requirement failed: users in PreparedData cannot be empty. Please check if DataSource generates TrainingData and Preprator generates PreparedData correctly.
java.lang.IllegalArgumentException: requirement failed: RDD[Rating] in PreparedData cannot be empty. Please check if DataSource generates TrainingData and Preprator generates PreparedData correctly.
at scala.Predef$.require(Predef.scala:233)
at io.cordial.test.ALSAlgorithm.train(ALSAlgorithm.scala:35)
at io.cordial.test.ALSAlgorithm.train(ALSAlgorithm.scala:22)
at io.prediction.controller.PAlgorithm.trainBase(PAlgorithm.scala:47)
at io.prediction.controller.Engine$$anonfun$18.apply(Engine.scala:689)
at io.prediction.controller.Engine$$anonfun$18.apply(Engine.scala:689)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at io.prediction.controller.Engine$.train(Engine.scala:689)
at io.prediction.controller.Engine.train(Engine.scala:174)
at io.prediction.workflow.CoreWorkflow$.runTrain(CoreWorkflow.scala:65)
at io.prediction.workflow.CreateWorkflow$.main(CreateWorkflow.scala:247)
at io.prediction.workflow.CreateWorkflow.main(CreateWorkflow.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)

Users with the same issue

Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
6 times, 1 year ago
10 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.