Hi Guys,
I am trying to use SparkGraphComputer with Tinkerpop 3.3.0 to run gremlin queries over Azure CosmosDB.
While running my application I am facing the following error:
Exception in thread "main" java.lang.IllegalStateException: java.lang.IllegalStateException: Unable to load KryoShimService
at org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.VertexProgramStep.processNextStart(VertexProgramStep.java:88)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
at org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.ComputerResultStep.processNextStart(ComputerResultStep.java:68)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.next(DefaultTraversal.java:200)
at Main$.main(Main.scala:82)
I was searching for some reference over google and stack overflow but couldn't find anything helpful.
Here is my SparkGraphComputer configuration:
//####################################
//# SparkGraphComputer Configuration #
//####################################
conf.setProperty("spark.master", "yarn")
conf.setProperty("spark.executor.memory", "1g")
conf.setProperty("spark.executor.instances", "1")
conf.setProperty("spark.serializer" , "org.apache.spark.serializer.KryoSerializer")
conf.setProperty("spark.kryo.registrator", "org.apache.tinkerpop.gremlin.spark.structure.io.gryo.GryoRegistrator")
conf.setProperty("gremlin.spark.persistContext", "true")
Can any of you suggest how to debug this problem?
Thanks,
Devang.