Star

Building Error spark-java

Hi guys, I followed the steps of this blog (https://nebula-graph.io/posts/nebula-spark-connector-reader/) to build the JAR, but a got an error when built it, something with package com.vesoft.nebula.shaded.google.common.base went wrong,
I executed “mvn clean compile package install -Dgpg.skip -Dmaven.javadoc.skip=true”, any idea?

Sorry that the blog need to be update.
Please compile spark reader under nebula-java directory :

cd nebula-java
mvn clean compile package install -Dgpg.skip -Dmaven.javadoc.skip=true

Hi Nicole, thanks for your reply.

Just to confirm, I’m working under the branch v1.0.
I got this error after follow your steps.

Thanks

When compile nebula-java in non-linux system, you should skip all the test using:
mvn clean compile package install -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.test.skip=true

I tried and got another error when nebula-spark is building.
Do you have a repo when I can download the jar.? thanks in advance.

Maybe your Scala version or Spark version is not compatible, please check the Scala version and Spark version. And what’s your JDK version?

Scala version used in nebula-spark is 2.11.
Spark version used in nebula-spark is 2.4.4.

This issue is familiar with the compile problem:

It built using jdk 8 and maven 3.6.3.

Thanks for your support Nicole.