Giter Club home page Giter Club logo

Comments (10)

henrydavidge avatar henrydavidge commented on June 9, 2024

Are you sure that you're launching the pyspark shell from the binary distribution with scala 2.11? Maybe you're launching a pip or conda installed version? I'm pretty sure that your error is caused by a scala version mismatch.

from glow.

lsygxw avatar lsygxw commented on June 9, 2024

@henrydavidge I am sure that the version of scala I am using is 2.11.12, which comes with the sprak-bin. There is no problem with using spark-shell to start glow. If it is caused by the scala version, the spark-shell should not work properly. , But only pyspark will report an error, the following is the spark-shell startup interface:
image

from glow.

henrydavidge avatar henrydavidge commented on June 9, 2024

@lsygxw Yep, the fact that you only get an error when using pyspark makes me think that the pyspark shell corresponds to a different spark installation with the wrong scala version.

Try running these commands in the pyspark shell:

>>> spark._jvm.scala.util.Properties.versionString()
>>> spark._jvm.scala.util.Properties.javaVersion()

from glow.

lsygxw avatar lsygxw commented on June 9, 2024

@henrydavidge First of all, thank you for your help. The result is as follows after executing in pyspark according to your method:
image
Are the results as expected?

from glow.

henrydavidge avatar henrydavidge commented on June 9, 2024

Hm, that does look like the right scala and java version. How exactly are you installing glow?

from glow.

lsygxw avatar lsygxw commented on June 9, 2024

@henrydavidge Same as the demo on your document pip3 install glow.py
Is it possible to lack some dependency or configuration? My 'spark-env.sh' configuration is as follows:
image

from glow.

magelan avatar magelan commented on June 9, 2024

I get the same error with the versions below.

 ____              __
 / __/__  ___ _____/ /__
_\ \/ _ \/ _ `/ __/  '_/

/__ / .__/_,// //_\ version 2.4.3
/
/

Using Python version 3.6.9 (default, Apr 18 2020 01:56:04)
SparkSession available as 'spark'.

spark._jvm.scala.util.Properties.versionString()
'version 2.11.12'
spark._jvm.scala.util.Properties.javaVersion()
'1.8.0-adoptopenjdk'

from glow.

magelan avatar magelan commented on June 9, 2024

In my case the problem was that I used the dowloaded glow jar file instead of the --packages option because of a corporate proxy. That did not load the dependencies and caused problems.

this was required to get proxy and certificates working:
pyspark --conf "spark.driver.extraJavaOptions=-Djava.net.useSystemProxies=true -Djavax.net.ssl.trustStore=keystore.jks" --packages io.projectglow:glow_2.11:0.4.0

from glow.

henrydavidge avatar henrydavidge commented on June 9, 2024

Ah, thank you for the response @magelan! That explains why I couldn't reproduce. @lsygxw is that your problem as well?

from glow.

henrydavidge avatar henrydavidge commented on June 9, 2024

I'm tentatively going to close. @lsygxw feel free to reopen if your issue persists.

from glow.

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.