Coder Social home page Coder Social logo

Comments (4)

pola88 avatar pola88 commented on July 17, 2024

I upgraded the node version, but I am still getting the error.

from apache-spark-node.

henridf avatar henridf commented on July 17, 2024

@pola88 what is the upgraded node version you tried with? And did you get the same error message?

from apache-spark-node.

henridf avatar henridf commented on July 17, 2024

Hmm, actually I just tried running with node 0.12.7 and I get the same error as you. Not sure when that broke as I initially developed with 0.12 (as noted in the README which is now incorrect).

I've recently been using 4.x which works fine. I'd suggest using that for the time being.

I'll keep this issue open to look into the 0.12 breakage.

from apache-spark-node.

pola88 avatar pola88 commented on July 17, 2024

Thanks @henridf , I have upgraded to 0.12.7 as noted in the README and I still get the same error message.

Changing the name of a function (length in lib/functions.js:1317) it works.

When I require the package in my node project, I must to pass an empty string as argument and also I got an error from Java, but I can use it anyway.

import ApacheSparkNode from 'apache-spark-node';

let apacheSparkNode = ApacheSparkNode('');
let df = apacheSparkNode.sqlContext.read().jsonSync('/Users/pola/spark-test/data/people.json');

The error Java is:

ERROR SparkContext: Error adding jar (java.lang.IllegalArgumentException: /Users/pola/spark-test cannot be a directory.), was the --addJars option used?

Thanks in advance,
PoLa.

from apache-spark-node.

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.