Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27231

Stack overflow error, when we increase the number of iteration in PIC

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.3, 2.4.0
    • Fix Version/s: None
    • Component/s: MLlib
    • Labels:
      None

      Description

      val dataset = spark.createDataFrame(Seq(
      (0L, 1L, 1.0),
      (0L, 2L, 1.0),
      (1L, 2L, 1.0),
      (3L, 4L, 1.0),
      (4L, 0L, 0.1)
      )).toDF("src", "dst", "weight")

      val model = new PowerIterationClustering().
      setK(2).
      setMaxIter(100).
      setInitMode("degree").
      setWeightCol("weight")

      val prediction = model.assignClusters(dataset).select("id", "cluster")

      java.lang.StackOverflowError
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2188)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shahid shahid
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: