Code Monkey home page Code Monkey logo

Comments (7)

JMailloH avatar JMailloH commented on August 10, 2024

I tried in spark-shell and spark-submit and I obtained the same error. Has anyone been able to run without having this error? Many thanks.

from spark-knn.

saurfang avatar saurfang commented on August 10, 2024

Make sure you are using the same Spark version as the one used to build this project JAR.

from spark-knn.

d0085 avatar d0085 commented on August 10, 2024

i got the same problem when i try to run it on spark 1.6.2
can u help me please?

from spark-knn.

kaushikacharya avatar kaushikacharya commented on August 10, 2024

@d0085
Have a look at the discussion in thread: #32
regarding the spark version.

from spark-knn.

d0085 avatar d0085 commented on August 10, 2024

thx for the reply @kaushikacharya
but i still dont understand. I got the error when i try to create an object by calling new KNNClassifier(). can i do it on spark 1.6.2?
if i cant, i wanna know can i use this package on my spark 1.6.2?
sorry for my bad english :'

from spark-knn.

kaushikacharya avatar kaushikacharya commented on August 10, 2024

@d0085
For spark version 1.6.1, you can use the following release:
https://github.com/saurfang/spark-knn/releases/tag/v0.1.1

https://spark-packages.org/package/saurfang/spark-knn
This contains the package.

from spark-knn.

d0085 avatar d0085 commented on August 10, 2024

hey, sorry for asking the same question again.
i'm really dont understand what happened here. i have include the jar from spark package that u've said before. then i try to do this
scala> val knn = new KNNClassifier().setTopTreeSize(training.count().toInt/500).setK(5)

and this error appears
<console>:27: error: not found: type KNNClassifier val knn = new KNNClassifier().setTopTreeSize(training.count().toInt/500).setK(5)

can u help me please :(

from spark-knn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.