[ 
https://issues.apache.org/jira/browse/SPARK-5489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14297951#comment-14297951
 ] 

DeepakVohra commented on SPARK-5489:
------------------------------------

Sean,

Some dependency is making use of scala.runtime.IntRef.create, which was 
introduced in Scala 2.11.  
https://github.com/scala/scala/blob/v2.11.0/src/library/scala/runtime/IntRef.java

Scala 2.10.4, which is included with Spark 1.2, does not include the 
scala.runtime.IntRef.create method.
https://github.com/scala/scala/blob/v2.10.4/src/library/scala/runtime/IntRef.java

thanks,
Deepak

> KMeans clustering java.lang.NoSuchMethodError: scala.runtime.IntRef.create  
> (I)Lscala/runtime/IntRef;
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-5489
>                 URL: https://issues.apache.org/jira/browse/SPARK-5489
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.2.0
>         Environment: Spark 1.2 
> Maven
>            Reporter: DeepakVohra
>
> The KMeans clustering generates following error, which also seems to be due 
> version mismatch between Scala used for compiling Spark and Scala in Spark 
> 1.2 Maven dependency. 
> Exception in thread "main" java.lang.NoSuchMethodError: 
> scala.runtime.IntRef.create
> (I)Lscala/runtime/IntRef;
>       at 
> org.apache.spark.mllib.clustering.KMeans.initKMeansParallel(KMeans.scala:282)
>       at 
> org.apache.spark.mllib.clustering.KMeans.runAlgorithm(KMeans.scala:155)
>       at 
> org.apache.spark.mllib.clustering.KMeans.run(KMeans.scala:132)
>       at 
> org.apache.spark.mllib.clustering.KMeans$.train(KMeans.scala:352)
>       at 
> org.apache.spark.mllib.clustering.KMeans$.train(KMeans.scala:362)
>       at 
> org.apache.spark.mllib.clustering.KMeans.train(KMeans.scala)
>       at 
> clusterer.kmeans.KMeansClusterer.main(KMeansClusterer.java:35)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to