简体   繁体   中英

How to run ElasticSearch with Titan graph database

I am newbie in Titan, the first thing i do is following the wiki page in Titan github site. However, the very first example blocks me.

gremlin> g = GraphOfTheGodsFactory.create('/tmp/titan')

But, it returns:

Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex Display stack trace? [yN] y java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex

I did not modify any jar files from Titan, and i was using Titian-0.4.4. The elasticsearch jar is 0.90.3, which should be compatible according to their sites. Wish someone could tell me how to do with it.

Also, there are so few code examples in Titan documentation. Is there place i can actually see how to use Java to play with Titan?

Thanks a lot for you help!

Which package did you download? Note that only Titan/All and Titan Server (All + Rexster) support ElasticSearch.

Also, there are so few code examples in Titan documentation. Is there place i can actually see how to use Java to play with Titan?

What is your experience with Blueprints in general? If you're totally new to graph databases, start at GremlinDocs or SQL2Gremlin if you have some SQL knowledge. Once you have a good understanding of Blueprints, you can dig deeper into Titan specific things like MultiQueries, ElasticSearch index queries, etc. You'll find some really great examples in Aurelius' Blog .

Regarding Java: I definitely suggest to start with Groovy in the Gremlin REPL. If you understand the concepts, try it in Java . But don't start with Java, it would make your experience much worse.

Cheers, Daniel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM