문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

Instead of increasing the timeout, you should page through your data in smaller batches.

CQL clients like the native Java driver do this automatically: http://www.datastax.com/dev/blog/cql-in-cassandra-2-0

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top