There is no ring for keyspace: xPCache with 2 clusters running on the same machine. #579

Open
alexsisu opened this Issue Jan 11, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@alexsisu

Hi,

In our development environment we have:
2 cassandra clusters: Cluster1, Cluster2.

In order to run 2 clusters on the same machine we had to add an alias in /etc/hosts
127.0.0.1 localhost
127.0.0.2 alpha

Cassandra version.1.0.6.
Hector version: 1.0.2

For Hector we set the autodiscover to true.
This is the way we are configuring CassandraHostConfigurator.












When we start our application the following exceptions occur:

SEVERE: Discovery Service failed attempt to connect CassandraHost
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:There is no ring for the keyspace: xPCache)

SEVERE: Discovery Service failed attempt to connect CassandraHost
me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:There is no ring for the keyspace: xPCache)
at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
at me.prettyprint.cassandra.service.ThriftCluster$1.execute(ThriftCluster.java:31)
at me.prettyprint.cassandra.service.ThriftCluster$1.execute(ThriftCluster.java:25)
at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:99)
at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:243)
at me.prettyprint.cassandra.service.ThriftCluster.describeRing(ThriftCluster.java:35)
at me.prettyprint.cassandra.connection.NodeAutoDiscoverService.discoverNodes(NodeAutoDiscoverService.java:99)
at me.prettyprint.cassandra.connection.NodeAutoDiscoverService.doAddNodes(NodeAutoDiscoverService.java:68)
at me.prettyprint.cassandra.connection.NodeAutoDiscoverService$QueryRing.run(NodeAutoDiscoverService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: InvalidRequestException(why:There is no ring for the keyspace: xPCache)
at org.apache.cassandra.thrift.Cassandra$describe_ring_result.read(Cassandra.java:23265)
at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_ring(Cassandra.java:1262)
at org.apache.cassandra.thrift.Cassandra$Client.describe_ring(Cassandra.java:1237)
at me.prettyprint.cassandra.service.ThriftCluster$1.execute(ThriftCluster.java:29)
... 16 more

I've checked that all our keyspaces are there. So the keyspaces exist.

Is this somehow related to: #490 ?
I didn't yet test with 2 clusters on different machines. I will do it next days, and I will come with more information.

@sumitthakur040388

This comment has been minimized.

Show comment Hide comment
@sumitthakur040388

sumitthakur040388 Jan 23, 2013

I got same problem in same cluster.

I got same problem in same cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment