Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "Thread-4" java.lang.NoClassDefFoundError: ml/combust/bundle/HasBundleRegistry #845

Closed
drei34 opened this issue Feb 10, 2023 · 3 comments

Comments

@drei34
Copy link

drei34 commented Feb 10, 2023

I'm not sure if this issue has a resolution. Why would this error happen and how can you fix it?

I'm on Java 8, mleap 0.20.0, Scala 2.12 and pyspark 3.1.3.

#442

@jsleight
Copy link
Contributor

jsleight commented Feb 10, 2023

Might be related to the issue in #842

edit: oh definitely. You just made another issue for it, I got you 😄

@drei34
Copy link
Author

drei34 commented Feb 13, 2023

Ha right it is related to #842 I guess but more related to #442. #442 was closed, but I am unsure why because the answer is not there. So I figure I can directly address that here ...

@drei34
Copy link
Author

drei34 commented Mar 7, 2023

This was resolved after we installed Java 11 and used the malest mleap. We used mleap-databricks-runtime-fat-assembly-0.22.0. You also need to change JAVA_HOME inside of spark. The command below might work.

`

We need this new Java since the new Mleap uses Java 11.

sudo apt-get -y install openjdk-11-jdk
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
pip install mleap

If you don't do this, Spark will complain about Python 3.7 and 3.8.

export PYSPARK_PYTHON=/opt/conda/miniconda3/bin/python
export PYSPARK_DRIVER_PYTHON=/opt/conda/miniconda3/bin/python

Copy the jar to the right location

cp mleap-databricks-runtime-fat-assembly-0.22.0.jar $SPARL_HOME/jars
echo "export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"" >> $SPARK_HOME/conf/spark-env.sh
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants