Grakn tries to connect to cassandra over thrift


#1

I get the following

I have an external cassandra setup running on kubernetes and exposed at cassandra.default.svc.cluster . However grakn fails to connect with the following error

Caused by: java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:44)
	... 39 common frames omitted
Caused by: com.thinkaurelius.titan.diskstorage.TemporaryBackendException: Temporary failure in storage backend
	at com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:580)
	at com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.<init>(AstyanaxStoreManager.java:291)
	... 44 common frames omitted
Caused by: com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException: PoolTimeoutException: [host=cassandra.default.svc.cluster.local(10.52.1.18):9160, latency=10000(10000), attempts=1]Timed out waiting for connection


#2

Hi @jonathan-kosgei,

Grakn needs to be able to connect to all nodes in a Cassandra cluster. Could you check that you have connectivity from the Grakn server to all Cassandra nodes?
Please also make sure you are running Cassandra 2.1.x (2.1.17 preferable) which has the thrift interface enabled by default.

If that doesn’t resolve the issue, can you give more detail on how your Grakn and Cassandra cluster are set up? If possible, please provide us with the configuration files for both.

Cheers,
Thanh