Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Hector API and Cassandra database: Undocumented exception

Whenever I use any Hector API function to access my Cassandra database, I get an exception:

me.prettyprint.hector.api.exceptions.HectorException: All host pools marked down. Retry burden pushed out to client.

My server does have Cassandra database running in the background.

I read up on the exception and it is effectively undocumented. It appears that the exception is due to connection issues.

How do I fix it?

like image 809
user1258361 Avatar asked Apr 03 '12 14:04

user1258361


1 Answers

You will get that error if the Hector client can't connect to Cassandra. There can be a number of reasons for this and things to try:

  • Make sure the connection properties in your code (ip/host/port) are configured correctly.
  • Make sure you can connect to it with cassandra-cli remotely -- it could be a networking issue.
  • Try posting your connection code here -- perhaps there's a problem there.
like image 185
Eugene Feingold Avatar answered Sep 28 '22 19:09

Eugene Feingold