java.lang.UnsupportedOperationException: empty collection

GitHub | Yongyao | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 57#247515330

    GitHub | 5 months ago | lewismc
    java.lang.UnsupportedOperationException: empty collection
  2. 0

    GitHub comment 57#247516116

    GitHub | 5 months ago | Yongyao
    java.lang.UnsupportedOperationException: empty collection

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      empty collection

      at org.apache.spark.rdd.RDD$$anonfun$reduce$1$$anonfun$apply$35.apply()
    2. Spark
      RDD$$anonfun$reduce$1$$anonfun$apply$35.apply
      1. org.apache.spark.rdd.RDD$$anonfun$reduce$1$$anonfun$apply$35.apply(RDD.scala:985)
      2. org.apache.spark.rdd.RDD$$anonfun$reduce$1$$anonfun$apply$35.apply(RDD.scala:985)
      2 frames
    3. Scala
      Option.getOrElse
      1. scala.Option.getOrElse(Option.scala:121)
      1 frame
    4. Spark
      RDD.reduce
      1. org.apache.spark.rdd.RDD$$anonfun$reduce$1.apply(RDD.scala:985)
      2. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
      3. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
      4. org.apache.spark.rdd.RDD.withScope(RDD.scala:358)
      5. org.apache.spark.rdd.RDD.reduce(RDD.scala:965)
      5 frames
    5. Spark Project ML Library
      IndexedRowMatrix.toCoordinateMatrix
      1. org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix.numRows(IndexedRowMatrix.scala:66)
      2. org.apache.spark.mllib.linalg.distributed.IndexedRowMatrix.toCoordinateMatrix(IndexedRowMatrix.scala:128)
      2 frames
    6. esiptestbed.mudrod.utils
      SimilarityUtil.CalSimilarityFromVector
      1. esiptestbed.mudrod.utils.MatrixUtil.transposeMatrix(MatrixUtil.java:487)
      2. esiptestbed.mudrod.utils.SimilarityUtil.CalSimilarityFromVector(SimilarityUtil.java:62)
      2 frames
    7. esiptestbed.mudrod.semantics
      SemanticAnalyzer.calTermSimfromMatrix
      1. esiptestbed.mudrod.semantics.SemanticAnalyzer.calTermSimfromMatrix(SemanticAnalyzer.java:69)
      2. esiptestbed.mudrod.semantics.SemanticAnalyzer.calTermSimfromMatrix(SemanticAnalyzer.java:60)
      2 frames
    8. esiptestbed.mudrod.weblog
      UserHistoryAnalyzer.execute
      1. esiptestbed.mudrod.weblog.process.UserHistoryAnalyzer.execute(UserHistoryAnalyzer.java:54)
      1 frame
    9. esiptestbed.mudrod.discoveryengine
      WeblogDiscoveryEngine.process
      1. esiptestbed.mudrod.discoveryengine.WeblogDiscoveryEngine.process(WeblogDiscoveryEngine.java:202)
      1 frame
    10. esiptestbed.mudrod.main
      MudrodEngine.main
      1. esiptestbed.mudrod.main.MudrodEngine.startFullIngest(MudrodEngine.java:159)
      2. esiptestbed.mudrod.main.MudrodEngine.main(MudrodEngine.java:357)
      2 frames