java.lang.UnsupportedOperationException

empty collection

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web79

  • via Google Groups by Anagha Joshi, 1 year ago
    empty collection
  • via GitHub by manhtuhtk
    , 8 months ago
    empty collection
  • empty collection
  • Stack trace

    • java.lang.UnsupportedOperationException: empty collection at org.apache.spark.rdd.RDD$$anonfun$reduce$1$$anonfun$apply$35.apply(RDD.scala:985) at org.apache.spark.rdd.RDD$$anonfun$reduce$1$$anonfun$apply$35.apply(RDD.scala:985) at scala.Option.getOrElse(Option.scala:121) at org.apache.spark.rdd.RDD$$anonfun$reduce$1.apply(RDD.scala:985) at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112) at org.apache.spark.rdd.RDD.withScope(RDD.scala:358) at org.apache.spark.rdd.RDD.reduce(RDD.scala:965) at org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix.numRows(IndexedRowMatrix.scala:66) at org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix.toCoordinateMatrix(IndexedRowMatrix.scala:128) at esiptestbed.mudrod.utils.MatrixUtil.transposeMatrix(MatrixUtil.java:487) at esiptestbed.mudrod.utils.SimilarityUtil.CalSimilarityFromVector(SimilarityUtil.java:62) at esiptestbed.mudrod.semantics.SemanticAnalyzer.calTermSimfromMatrix(SemanticAnalyzer.java:69) at esiptestbed.mudrod.semantics.SemanticAnalyzer.calTermSimfromMatrix(SemanticAnalyzer.java:60) at esiptestbed.mudrod.weblog.process.UserHistoryAnalyzer.execute(UserHistoryAnalyzer.java:54) at esiptestbed.mudrod.discoveryengine.WeblogDiscoveryEngine.process(WeblogDiscoveryEngine.java:202) at esiptestbed.mudrod.main.MudrodEngine.startFullIngest(MudrodEngine.java:159) at esiptestbed.mudrod.main.MudrodEngine.main(MudrodEngine.java:357)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.