Skip to content
Advertisement

Titan loading problems with elastic search

I’m using the following code to load Titan:

JavaScript

loading dependencies with gradle:

JavaScript

My project directory is:

/home/ray/IdeaProjects/BAG – Byzantine fault-tolerant Architecture for Graph database/

my titan is in this project directory in the folder “TITAN” That’s what I set in the Directory variable.

Still on start it always crashes:

JavaScript

My gradle file:

JavaScript

Advertisement

Answer

You should be more specific on your Titan dependencies so you don’t pull in unintended artifacts. Instead of using titan-all, try something like this:

JavaScript

You should not need to include gremlin-core explicitly because it is a dependency of titan-core, however if you do add it, it should be aligned with the TinkerPop version that Titan 1.0 uses:

JavaScript

Updated

Your previous failed attempts have likely created an invalid graph instance stored under DIRECTORY. You must recursively remove DIRECTORY before attempting to create a new graph using the same directory.

Elasticsearch indexing backend does not work with a index.search.DIRECTORY configuration (note the case). This is the relevant part of the stack trace:

Ignored configuration entry for index.search.DIRECTORY since it does not map to an option java.lang.IllegalArgumentException: Unknown configuration element in namespace [root.index]: DIRECTORY

You can read more about the various Elasticsearch configuration options in Chapter 22 of the Titan documentation.

Instead of Elasticsearch, consider using Lucene. Its configuration looks similar to BerkeleyJE storage, and both are well-suited for a single-machine Titan.

JavaScript

Also update build.gradle with the dependency for lucene:

JavaScript

I’d also recommend trying to build a Titan project without Neo4j, OrientDB, Sparksee, and other non-Titan dependencies first to ensure you have a simple project that works without any dependency conflicts.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement