Search code examples
cassandrahector

How to increase timeout for queries in Hector?


Im using HFactory.createRangeSlicesQuery and set rows count to 1 million (with setRowCount() method), but get a TimedOutException().

Is there a way to set the timeout from client?

I have tried various setters in CassandraHostConfigurator but it didnt help.


Solution

  • You should increase the rpc_timeout setting in cassandra.yaml meaning you config the setting server-side per each node. Checkout this thread for some more details.