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. ,

    You try to read an empty csv into a dataframe with .option("header", "true"). Make sure that the file contains at least the header line.

Solutions on the web

via Stack Overflow by MichaelDD
, 2 years ago
via Stack Overflow by maher
, 7 months ago
via GitHub by car2008
, 1 year ago
java.lang.UnsupportedOperationException: empty collection at org.apache.spark.rdd.RDD$$anonfun$first$1.apply(RDD.scala:1318) at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147) at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108) at org.apache.spark.rdd.RDD.withScope(RDD.scala:310) at org.apache.spark.rdd.RDD.first(RDD.scala:1315) at org.apache.spark.mllib.recommendation.MatrixFactorizationModel.validateFeatures(MatrixFactorizationModel.scala:67) at org.apache.spark.mllib.recommendation.MatrixFactorizationModel.<init>(MatrixFactorizationModel.scala:62) at at org.apache.spark.mllib.recommendation.ALS$.train(ALS.scala:328) at org.apache.spark.mllib.recommendation.ALS$.train(ALS.scala:346)