incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomas Zulberti <>
Subject Bulk insertion in Cassandra 0.7 beta3
Date Tue, 09 Nov 2010 19:26:36 GMT
We are making some tests using 3 nodes: A, B, C. We are bulk inserting
87500 keys, and for each of them 1 super column with 768 columns.
We are using hector 0.7.0-18 to insert the data, and at some point an
exception is raised, and sometimes cassandra deamon stop running in
one of the nodes.
The nodes has 2gb of RAM, so the JVM heap is 1gb, and the CPU load
goes up to 80%.

It is possible to insert that ammount of data every 10 minutes? That
would be our use case scenario. We are newbies in cassandra, so maybe
we must take a different approach. What do you suggest?

The keyspace configuration is:
    - name: TestKeyspace
      replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
      replication_factor: 3
        - name: TestFamily
          column_type: Super
          compare_with: LongType
          compare_subcolumns_with: UTF8Type
          keys_cached: 200000
          rows_cached: 0
          key_cache_save_period_in_seconds: 3600
          row_cache_save_period_in_seconds: 0
          memtable_flush_after_mins: 3600
          memtable_throughput_in_mb: 80
          memtable_operations_in_millions: 0.10

the seeds configuration for each node in each machine:
    - A

and the exception that is raised is:
Exception in thread "main"
        at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(
        at me.prettyprint.cassandra.service.Operation.executeAndSetResult(
        at me.prettyprint.cassandra.service.FailoverOperator.operateSingleIteration(
        at me.prettyprint.cassandra.service.FailoverOperator.operate(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl.batchMutate(
        at me.prettyprint.cassandra.model.MutatorImpl$2.doInKeyspace(
        at me.prettyprint.cassandra.model.MutatorImpl$2.doInKeyspace(
        at me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(
        at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(
        at me.prettyprint.cassandra.model.MutatorImpl.execute(
        at com.popego.benchmarks.InsertSegmentsHits.batchInsert(
        at com.popego.benchmarks.InsertSegmentsHits.insertData(
        at com.popego.benchmarks.InsertSegmentsHits.main(
Caused by: UnavailableException()
        at org.apache.cassandra.thrift.Cassandra$
        at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(
        at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(
        at me.prettyprint.cassandra.service.KeyspaceServiceImpl$1.execute(
        ... 15 more

View raw message