JackyYangPassion commented on PR #470:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/pull/470#issuecomment-1557290342

   I have test local
   with  spark 3.2.2
   This problem is solved very well, but there is still a jar package problem:
   
   CMD 
   ```
   sh bin/hugegraph-spark-loader.sh --master local --name 
spark-hugegraph-loader --file example/spark/struct.json --username admin 
--token admin --host 127.0.0.1 --port 8080 --graph hugegraph_200
   ```
   
   Error log
   ```
   java.lang.NoSuchMethodError: 
org.glassfish.jersey.client.JerseyClientBuilder.newClient(Ljakarta/ws/rs/core/Configuration;)Ljakarta/ws/rs/client/Client;
        at 
org.apache.hugegraph.rest.AbstractRestClient.<init>(AbstractRestClient.java:167)
        at 
org.apache.hugegraph.rest.AbstractRestClient.<init>(AbstractRestClient.java:130)
        at org.apache.hugegraph.client.RestClient.<init>(RestClient.java:54)
        at org.apache.hugegraph.driver.HugeClient.<init>(HugeClient.java:62)
        at 
org.apache.hugegraph.driver.HugeClientBuilder.build(HugeClientBuilder.java:62)
        at 
org.apache.hugegraph.loader.util.HugeClientHolder.create(HugeClientHolder.java:72)
        at 
org.apache.hugegraph.loader.executor.LoadContext.<init>(LoadContext.java:71)
        at 
org.apache.hugegraph.loader.spark.HugeGraphSparkLoader.initPartition(HugeGraphSparkLoader.java:198)
        at 
org.apache.hugegraph.loader.spark.HugeGraphSparkLoader.lambda$null$18e75a97$1(HugeGraphSparkLoader.java:154)
        at 
org.apache.spark.sql.Dataset.$anonfun$foreachPartition$2(Dataset.scala:2923)
        at 
org.apache.spark.sql.Dataset.$anonfun$foreachPartition$2$adapted(Dataset.scala:2923)
        at org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2(RDD.scala:1020)
        at 
org.apache.spark.rdd.RDD.$anonfun$foreachPartition$2$adapted(RDD.scala:1020)
        at 
org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2254)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
        at org.apache.spark.scheduler.Task.run(Task.scala:131)
        at 
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1491)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to