I'm using Hector and during some batch inserting the following
exceptions occurs:
WARN [not.interesting.cassandra.Runner.main()]
(HConnectionManager.java:294) - Could not fullfill request on this host
CassandraClient<localhost:9160-50>
WARN [not.interesting.cassandra.Runner.main()]
(HConnectionManager.java:295) - Exception:
me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
at
me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:42)
at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:252)
at
me.prettyprint.cassandra.model.ExecutingKeyspace.doExecuteOperation(ExecutingKeyspace.java:97)
at
me.prettyprint.cassandra.model.MutatorImpl.execute(MutatorImpl.java:243)
at
not.interesting.cassandra.batchimport.BatchImport.importFromFile(BatchImport.java:304)
at
not.interesting.cassandra.batchimport.BatchImport.importFromFile(BatchImport.java:182)
at
not.interesting.cassandra.batchimport.BatchImport.importFromDirectory(BatchImport.java:173)
at not.interesting.cassandra.Runner.main(Runner.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:662)
Caused by: TimedOutException()
at
org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:19493)
at
org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:1035)
at
org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:1009)
at
me.prettyprint.cassandra.model.MutatorImpl$3.execute(MutatorImpl.java:246)
at
me.prettyprint.cassandra.model.MutatorImpl$3.execute(MutatorImpl.java:243)
at
me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:103)
at
me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:246)
... 12 more
I currently perform 5000 (also tried with 10000 -> same problem)
Insertions in one Mutator.execute() Call. The exceptions seems to occur
non-deterministic. The application and cassandra are running on the same
machine, so no network problems could cause the problem (imho).
Thanks for your help!
Martin