Hi All,

I have downloaded titan-server-0.4.4 and trying to integrate it with
Cassandra as backend datasource. Cassandra is running as external on 4 node
machine, now I am trying to start Rexster with the Cassandra as my backend
source but it comes up with error while initializing.
I have even tried with the hbase as the backend which works well, so it
seems that the problem is with Cassandra or the rexter configuration.
I have mentioned below the snippet of rexster-cassandra.xml and the error I
am getting.

rexster-cassandra.xml

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

<graph-type>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graph-type>
            <!-- <graph-location>/tmp/titan</graph-location> -->
            <graph-read-only>false</graph-read-only>
            <properties>
                <storage.backend>cassandra</storage.backend>
<storage.keyspace>mykeyspace</storage.keyspace>
<storage.port>9160</storage.port>
<storage.tablename>metagraph</storage.tablename>
<storage.hostname>192.168.2.32,192.168.2.36,192.168.2.37,192.168.2.38</storage.hostname>
            </properties>
            <extensions>
              <allows>
                <allow>tp:gremlin</allow>
              </allows>
            </extensions>
        </graph>

Error:

[com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration]. Ensure
that it is in Rexster's path.
com.tinkerpop.rexster.config.GraphConfigurationException:
GraphConfiguration could not be found or otherwise instantiated:
[com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration]. Ensure
that it is in Rexster's path.
at
com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:137)
at
com.tinkerpop.rexster.config.GraphConfigurationContainer.<init>(GraphConfigurationContainer.java:54)
at
com.tinkerpop.rexster.server.XmlRexsterApplication.reconfigure(XmlRexsterApplication.java:99)
at
com.tinkerpop.rexster.server.XmlRexsterApplication.<init>(XmlRexsterApplication.java:47)
at com.tinkerpop.rexster.Application.<init>(Application.java:96)
at com.tinkerpop.rexster.Application.main(Application.java:188)
Caused by: java.lang.IllegalArgumentException: Could not instantiate
implementation:
com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager
at com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:355)
at
com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:367)
at
com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:311)
at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:121)
at
com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1173)
at
com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:75)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40)
at
com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration.configureGraphInstance(TitanGraphConfiguration.java:25)
at
com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFromConfiguration(GraphConfigurationContainer.java:119)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:344)
... 13 more
Caused by: com.thinkaurelius.titan.diskstorage.TemporaryStorageException:
Temporary failure in storage backend
at
com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:550)
at
com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.<init>(AstyanaxStoreManager.java:276)
... 18 more
Caused by:
com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException:
PoolTimeoutException: [host=192.168.2.36(192.168.2.36):9160,
latency=40001(40001), attempts=4]Timed out waiting for connection
at
com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.waitForConnection(SimpleHostConnectionPool.java:218)
at
com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.borrowConnection(SimpleHostConnectionPool.java:185)
at
com.netflix.astyanax.connectionpool.impl.RoundRobinExecuteWithFailover.borrowConnection(RoundRobinExecuteWithFailover.java:66)
at
com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:67)
at
com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:256)
at
com.netflix.astyanax.thrift.ThriftClusterImpl.executeSchemaChangeOperation(ThriftClusterImpl.java:146)
at
com.netflix.astyanax.thrift.ThriftClusterImpl.addKeyspace(ThriftClusterImpl.java:246)
at
com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:545)
... 19 more



More over even to add that the Cassandra is up as I have tried creating
keyspace and columnfamily through CQLSH terminal.

I am looking out for the solution which can bring the rexter up with this
external configured cassandra backend.

Looking out for expert advice at the Earliest!

Thanks!

Reply via email to