Titan + Rexster Server + Cassandra Remote

370 views
Skip to first unread message

VomerJike

unread,
Sep 19, 2013, 3:43:43 PM9/19/13
to aureliu...@googlegroups.com

Titan + Rexster Server + Cassandra Remote

I’m currently trying to use a titangraph using a Cassandra Remote (running at localhost as suggested by Matthias https://groups.google.com/forum/#!topic/aureliusgraphs/EasJTTkDtfY) with the Rexster Server. 

When I go to: 

I can see the titangraph at localhost:8182/graphs

{

  1. version: "2.4.0",
  1. name: "Rexster: A Graph Server",
  1. graphs:
    [
    1. "tinkergraph",
    2. "emptygraph",
    3. "tinkergraph-readonly",
    4. "gratefulgraph",
    5. "titangraph"
  1. ],
  1. queryTime: 2.585856,
  1. upTime: "0[d]:00[h]:00[m]:04[s]"

}

However when I connect to:

localhost:8182/graphs/titangraph I get an Internal Error

I created titangraph using titan-cassandra-3.0.2. (Cassandra 1.2.9 is already running as localhost) 

gremlin> g = TitanFactory.open('bin/cassandra.local')

==>titangraph[cassandrathrift:127.0.0.1]

gremlin> g.addVertex([name: 'jupiter']);

==>v[4]

gremlin> g.commit();

==>null

gremlin> g.shutdown();

==>null

[I also tried with titangraph opened in gremlin, and I get the same error]


cassandra.local file is configured as follow:

storage.backend=cassandrathrift

storage.hostname=127.0.0.1


The Rexster Server Configuration rexster-server-2.4.0/config/rexster.xml

        <graph>

            <graph-name>titangraph</graph-name>

            <graph-type>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graph-type>

            <graph-location>/var/lib/cassandra/data/titan</graph-location>

            <graph-read-only>false</graph-read-only>

            <properties>

              <storage.backend>cassandrathrift</storage.backend>

              <storage.hostname>127.0.0.1</storage.hostname>

            </properties>

            <extensions>

                <allows>

                    <allow>tp:gremlin</allow>

                </allows>

            </extensions>

        </graph>


Rexster links the titangraph, however i can’t see the vertex

Anupama Mann

unread,
Sep 19, 2013, 3:56:09 PM9/19/13
to aureliu...@googlegroups.com
Is your setup of Rexester-Titan-Cassandra running on same machine ?

Did you try connecting it after changing the storage.backend from Cassandrathrift to Cassandra and specifying the actual IP address of the machine instead of 127.0.0.1? Basically in your Cassandra.local file and Rexester.xml file, try changing the following line


storage.backend=cassandra
storage.hostname=<ip address>






--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Message has been deleted

VomerJike

unread,
Sep 19, 2013, 4:04:20 PM9/19/13
to aureliu...@googlegroups.com
I'm running Titan, Cassandra and Rexster on the same machine. That's why I configured storage.hostname= 127.0.0.1, Both in Cassandra.local and Rexster.xml.

VomerJike

unread,
Sep 19, 2013, 10:51:52 PM9/19/13
to aureliu...@googlegroups.com
I've been trying with different configurations I'm still not able to connect the Rexster Server to Cassandra Remote. I'll keep trying.

VomerJike

unread,
Sep 20, 2013, 11:43:51 PM9/20/13
to aureliu...@googlegroups.com
[SOLVED]

Apparently Rexster Server 2.4.0 doesn't work well.

I was able to run the previous configuration using Rexster Server 2.3.0 and everything works well.

Stephen Mallette

unread,
Sep 21, 2013, 6:33:57 AM9/21/13
to aureliu...@googlegroups.com
sorry....i didn't pick up on the fact that you were using Rexster 2.4.0.  It's not that it doesn't work well...it's just that it doesn't work well with the current stable versions of Titan (0.3.x).  It should work with 0.4.0 when it arrives.

Stephen


Reply all
Reply to author
Forward
0 new messages