[orient-db] Configuration of an OrientDB Blueprints Graph DB under Rexster

151 views
Skip to first unread message

Salvatore Piccione

unread,
Jul 19, 2011, 11:19:41 AM7/19/11
to orient-...@googlegroups.com
Hello,

I'd like to share my experience about the configuration of an OrientDB Blueprints Graph under Rexster (both 0.4.1 and 0.5-SNAPSHOT).
I've defined a simple Blueprints Graph DB (a simple binary tree with 3 levels - in the attachments you can find the database dump) and I've been unsuccessful in configuring it under Rexster (both using local and remote protocol). The Rexster console log displayed a message like this: "[WARN] GraphConfigurationContainer - Could not load graph graphdb1. Please check the XML configuration.".
I succeeded in configuring the graph db sample bundled with OrientDB Graph Edition 1.0rc3 (named tinkerpop) only using the local protocol to retrieve the graph file as depicted in the snippet of code below:

<graph>
 <graph-enabled>true</graph-enabled>
 <graph-name>graphdb1</graph-name>
 <graph-type>orientgraph</graph-type>
 <graph-file>local:D:/orientdb-graphed-1.0rc3/databases/tinkerpop</graph-file>
 <properties>
   <username>admin</username>
   <password>admin</password>
 </properties>
</graph>


This implied that I could not access the database while Rexster was running.
Does this sound weird? Or is this a known issue on which you are working?

Maybe this is not the right place for sharing my experience...but I thought that OrientDB guys were the ones in charge of managing Blueprints and then Rexster support for OrientDB... Please, let me know if I have to post this issue under Rexster mailing list.

Cheers,

Salvatore
dump.txt

Luca Garulli

unread,
Jul 19, 2011, 11:37:19 AM7/19/11
to orient-...@googlegroups.com
Ciao Salvatore,
what was the remote configuration you used? This should work:

<graph-file>remote:localhost/tinkerpop</graph-file>

Lvc@

Salvatore Piccione

unread,
Jul 19, 2011, 12:01:54 PM7/19/11
to orient-...@googlegroups.com
I tried with the one you reported but I got the same warning message for both Rexster 0.4.1 and 0.5-SNAPSHOT. I succeeded only using the local protocol and only with the sample graph db.

2011/7/19 Luca Garulli <l.ga...@gmail.com>

Luca Garulli

unread,
Jul 19, 2011, 12:06:58 PM7/19/11
to orient-...@googlegroups.com
I don't know if Rexster has a log file where details that exception. Maybe thhe best place is the GREMLIN ML.

Lvc@

Salvatore Piccione

unread,
Jul 19, 2011, 12:14:52 PM7/19/11
to orient-...@googlegroups.com
Yes, Rexster has logging features but the only displayed message in DEBUG mode is that one. I'll write a post to Gremlin Mailing List. BTW, is the OrientDB team in charge of creating the Rexster "bridging" or it comes out-of-box by defining a Blueprints compliant Graph Engine?

2011/7/19 Luca Garulli <l.ga...@gmail.com>

Luca Garulli

unread,
Jul 19, 2011, 12:39:15 PM7/19/11
to orient-...@googlegroups.com
Hi,
next release of the Graph(Ed) could include Rexster in bundle, but it's not sure today. About the bridge is out-of-box since it implements Tinkerpop Blueprints. Just configure the db to use and make the OrientDB jars reachable.

By the way this could be the reason. Assure to have orientdb-client.jar and orientdb-enterprise.jar in your Rexster class path. In facts the "remote" protocol need them.

Lvc@

Salvatore Piccione

unread,
Jul 20, 2011, 3:56:46 AM7/20/11
to orient-...@googlegroups.com
Hello,

good news!!! By adding both libraries (orientdb-client.jar and orientdb-enterprise.jar) to the classpath of Rexster 0.5-SNAPSHOT I've been successful in configuring either the sample graph db and a custom graph db! It now supports connection over remote protocol!
BTW, this doesn't work with Rexster 0.4.1: the Orient Graph DB is loaded but an internal error occurs when you try to access the graph DB vertices and edges (I failed to configure the logging so I could not figure out what was the problem in the previous release...)

Thanks!

Salvatore

2011/7/19 Luca Garulli <l.ga...@gmail.com>

Luca Garulli

unread,
Jul 20, 2011, 4:32:44 AM7/20/11
to orient-...@googlegroups.com
Good! I've to write a WiKi page about it. Would you like to write it with a step by step guide?

Lvc@

Salvatore Piccione

unread,
Jul 20, 2011, 4:39:05 AM7/20/11
to orient-...@googlegroups.com
Sure! What about creating a page named "Rexster Configuration for OrientDB" and putting it in the Tutorial pages list (maybe under Miscellaneous)?

2011/7/20 Luca Garulli <l.ga...@gmail.com>

Luca Garulli

unread,
Jul 20, 2011, 5:16:03 AM7/20/11
to orient-...@googlegroups.com
If you give me your Google Account I can baptise you as contributor able to edit WiKi pages.

Lvc@
Reply all
Reply to author
Forward
0 new messages