Coder Social home page Coder Social logo

Comments (6)

r0mainK avatar r0mainK commented on June 12, 2024

Was having the same problem, solved by doing apt-get update && apt-get install libxml2 libxml2-dev make gcc g++ curl python3-dev && pip3 install --upgrade bblfsh on pod and workers

from jgit-spark-connector.

ajnavarro avatar ajnavarro commented on June 12, 2024

the --packages command is downloading the file from here: http://repo1.maven.org/maven2/tech/sourced/engine/0.6.1/engine-0.6.1.jar

Can you try downloading this jar file and trying it using --jars?

from jgit-spark-connector.

r0mainK avatar r0mainK commented on June 12, 2024

Actually I ran into this problems afterwards, but was able to solve by cleaning up my workers after installing new bblfsh, e.g.

kubectl exec -it l-spark-spark-worker-<id>

rm -r /opt/spark/jars/*
ls -l /usr/local/lib/python3.4/dist-packages/pyspark/jars | wc -l   
# 209 jars
cp /usr/local/lib/python3.4/dist-packages/pyspark/jars/*.jar /opt/spark/jars/
cp /opt/spark-2.2.0-bin-hadoop2.7/jars/
ls -l /opt/spark-2.2.0-bin-hadoop2.7/work/app-20180429202823-0200/10/*.jar | wc -l
# 51 jars (this folder was created after reproducing this issue)
cp /opt/spark-2.2.0-bin-hadoop2.7/work/app-20180429202823-0200/10/*.jar /opt/spark/jars/

It seemed to fix the problem for me, I was able to run extract UAST afterwords with no problem. You may want to delete the ivy2cache before running the shell just in case, too.

from jgit-spark-connector.

smacker avatar smacker commented on June 12, 2024

@ajnavarro I have tried it already. Look at the second case from the description:

# wget http://repo1.maven.org/maven2/tech/sourced/engine/0.6.1/engine-0.6.1.jar
# spark-shell --jars /engine-0.6.1.jar --master=spark://p-spark-master:7077

@r0mainK thanks for insights! Interesting!

from jgit-spark-connector.

ajnavarro avatar ajnavarro commented on June 12, 2024

@smacker, did the insights given by @r0mainK work for you?

from jgit-spark-connector.

smacker avatar smacker commented on June 12, 2024

just cleaning up /opt/spark/jars/* helped

from jgit-spark-connector.

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.