Can BulkLoaderVertexProgram also add mixed indexes

mystic m <mita...@...>


I am exploring Janusgraph bulk load via SparkGraphComputer, janusgraph has been setup as plugin to tinkerpop server and console, with HBase as underlying storage and Elasticsearch as external index store.
I am running this setup on MapR cluster and had to recompile Janusgraph to resolve guava specific conflicts (shaded guava with relocation).

Next I am trying out the example BulkLoaderVertexProgram code provided in Chapter 33, It works fine till I have composite and vertex centric indexes in my schema, but as soon as I define mixed indexes and execute same code I end up with following exception in my Spark Job in stage 2 of job 1 -

java.lang.NoClassDefFoundError: Could not initialize class

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(

        at org.janusgraph.util.system.ConfigurationUtil.instantiate(

        at org.janusgraph.diskstorage.Backend.getImplementationClass(

        at org.janusgraph.diskstorage.Backend.getIndexes(

        at org.janusgraph.diskstorage.Backend.<init>(

        at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.getBackend(

        at org.janusgraph.graphdb.database.StandardJanusGraph.<init>(

I have verified that all janusgraph specific jars are in spark executor classpath and mixed indexes work fine with GraphOfGod example.

First I want to understand is it right path to use BulkLoaderVertexProgram be used to add mixed indexes? or should I upload the data and build indexes thereafter?

let me know if any additional info is required to dig deeper.


Join to automatically receive all group messages.