irvingc / dbscan-on-spark

An implementation of DBSCAN runing on top of Apache Spark
Apache License 2.0
183 stars 58 forks source link

Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.$colon$colon.hd$1()Ljava/lang/Object; #11

Open yunheli opened 6 years ago

yunheli commented 6 years ago

@irvingc 怎么解决啊

tovbinm commented 5 years ago

This is most likely due to wrong Scala / Spark version.

BhaveshMandalkar commented 5 years ago

So which is the correct version to solve this issue?

tovbinm commented 5 years ago

I think it was compiled to work with Spark 2.1.0.

BhaveshMandalkar commented 5 years ago

Can you please help me more. I am build the jar against spark 2.1.0 but still get the error. Please tell what's wrong in my pom.xml.

org.scala-lang scala-library 2.10.4
 <dependency>
    <groupId>org.scala-lang</groupId>
    <artifactId>scala-compiler</artifactId>
    <version>2.10.4</version>
</dependency>

    <dependency>
        <groupId>org.apache.spark</groupId>
        <artifactId>spark-mllib_2.10</artifactId>
        <version>1.3.0</version>
    </dependency>
    <dependency>
        <groupId>com.meetup</groupId>
        <artifactId>archery_2.10</artifactId>
        <version>0.3.0</version>
    </dependency>
org.scalatest scalatest_2.10 3.2.0-SNAP5 test
    <dependency>
    <groupId>com.irvingc.spark</groupId>
    <artifactId>dbscan_2.10</artifactId>
    <version>0.1.0</version>
</dependency>

     <dependency>     
     <groupId>org.apache.spark</groupId>   
       <artifactId>spark-core_2.10</artifactId>
            <version>2.1.0</version>
             </dependency>

    <dependency>
        <groupId>org.apache.spark</groupId>
        <artifactId>spark-sql_2.10</artifactId>
        <version>2.1.0</version>
    </dependency>