How to start Titan graph server and connect with gremlin?

前端 未结 3 1143
故里飘歌
故里飘歌 2020-12-28 15:49

I\'ve been playing with Titan graph server for a while now. And my feeling is that, despite an extensive documentation, there is a lack of Getting started from scratch t

相关标签:
3条回答
  • 2020-12-28 16:22

    According to the documentation TitanFactory.open() takes either the name of a config file or the name of a directory to open or create a database in.

    If what steven says is true, there would be two ways to connect to the database with a BerkelyDB backend:

    1. Start the database through bin/titan.sh. Connect to the database through the rexster console.

    2. DON'T start the database using bin/titan.sh. Use the gremlin console instead: TitanFactory.open("database-location"). This will open the database. But this does not have a rexster server. Nothing else will be able to access the database but the gremlin console.

    0 讨论(0)
  • 2020-12-28 16:37

    With Titan Server/BerkeleyDB, you should attempt to connect via RexPro or REST (Thunderdome should connect over REST). You can't open another Titan-based connection to BerkeleyDB as Titan Server already owns that.

    This is different than Titan Server/Cassandra where connectivity occurs over RexPro or REST, but also through embedded Cassandra which enables connectivity over thrift via TitanFactory.open('graph')

    0 讨论(0)
  • 2020-12-28 16:40

    It's also possible to access Titan from python using these two libraries:

    https://github.com/StartTheShift/thunderdome

    and

    https://github.com/espeed/bulbs.

    Thunderdome is currently Titan-specific, and bulbs is generic. A (possibly biased) comparison between Thunderdome and Bulbs is given on Thunderdome's wiki: https://github.com/StartTheShift/thunderdome/wiki/Bulbs-VS-thunderdome

    If you need autocompletion, you can use iPython and enable autocompletion in your iPython config.

    0 讨论(0)
提交回复
热议问题