Cassandra input error

I have a 4 Node Kassandra cluster with two Kassandra nodes and two brisk nodes [cassandra + TT]. Animated Beta 2

I used cassandra-cli to insert create and update column families

My inserts and forecasts always fail. for instance

Column Column Family

[ default@StatsKeySpace ] create column family Impressions with comparator=UTF8Type and default_validation_class=CounterColumnType and key_validation_class=UTF8Type; 175d69d0-eb6f-11e0-0000-93bbb4d362fc Waiting for schema agreement... ... schemas agree across the cluster [ default@StatsKeySpace ] incr Impressions['Test']['impressions'] by 10; null [ default@StatsKeySpace ] incr Impressions['Test']['impressions'] by 1; null [ default@StatsKeySpace ] get Impressions['Test']['impressions']; null [ default@StatsKeySpace ] list Impressions; Using default limit of 100 null 

Standard Column Family

 [ default@StatsKeySpace ] set TestColumnFamily['Test']['tamil']='hai'; null 

All nodes are in a cluster

This is my defn keyword

 Keyspace: StatsKeySpace: Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy Durable Writes: true Options: [replication_factor:1] 

I tried cassandra-cli with debug mode. I found this error

 [ default@unknown ] use StatsKeySpace; Authenticated to keyspace: StatsKeySpace [ default@StatsKeySpace ] incr Impressions['tamil']['count'] by 1; null java.lang.RuntimeException at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:297) at org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217) at org.apache.cassandra.cli.CliMain.main(CliMain.java:345) 

Both column families have replicate_on_write false Thank you for your help in advance

Regards, Tamil

+4
source share
2 answers

Thanks to jbellis, I updated the version of cassandra that comes with fast and running cassandra-cli with the debug mode set. As mentioned in jbellis, I got a significant exception.

UnavailableException . Not enough nodes to maintain replication rate.

Since brisk uses brisksnitch, which deploys the fast nodes and cassandra nodes through different domain controllers. One of the four node clusters that is the seed for Brisk DC has been disabled. I hope that’s why I got this exception.

So, I restarted my entire cluster with all nodes updated with 0.8.6 and keypace using simpleestrategy, since there should only be one data center for my deployment.

Now all my inserts and forecasts are doing fine :) Hope brisk b2 is compatible with 0.8.6 in all aspects

Regards, Tamil.s

+3
source

You are trying to increase the number of columns excluding. See http://www.datastax.com/dev/blog/whats-new-in-cassandra-0-8-part-2-counters for an example of creating a CF for use with counters.

(Brisk b2 comes with what is currently a fairly old version of Cassandra. I believe that newer versions will return a more useful error message.)

+1
source

All Articles