incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Stephen.M.Thomp...@wellsfargo.com>
Subject RE: Not enough replicas???
Date Mon, 04 Feb 2013 13:55:57 GMT
Hi Edward - thanks for responding.   The keyspace could not have been created more simply:



create keyspace KEYSPACE_NAME;



According to the help, this should have created a replication factor of 1:



Keyspace Attributes (all are optional):

- placement_strategy: Class used to determine how replicas

  are distributed among nodes. Defaults to NetworkTopologyStrategy with

  one datacenter defined with a replication factor of 1 ("[datacenter1:1]").



Steve



-----Original Message-----
From: Edward Capriolo [mailto:edlinuxguru@gmail.com]
Sent: Friday, February 01, 2013 5:49 PM
To: user@cassandra.apache.org
Subject: Re: Not enough replicas???



Please include the information on how your keyspace was created. This may indicate you set
the replication factor to 3, when you only have 1 node, or some similar condition.



On Fri, Feb 1, 2013 at 4:57 PM,  <Stephen.M.Thompson@wellsfargo.com<mailto:Stephen.M.Thompson@wellsfargo.com>>
wrote:

> I need to offer my profound thanks to this community which has been so

> helpful in trying to figure this system out.

>

>

>

> I've setup a simple ring with two nodes and I'm trying to insert data

> to them.  I get failures 100% with this error:

>

>

>

> me.prettyprint.hector.api.exceptions.HUnavailableException: : May not

> be enough replicas present to handle consistency level.

>

>

>

> I'm not doing anything fancy - this is just from setting up the

> cluster following the basic instructions from datastax for a simple

> one data center cluster.  My config is basically the default except

> for the changes they discuss (except that I have configured for my IP

> addresses... my two boxes are

> .126 and .127)

>

>

>

> cluster_name: 'MyDemoCluster'

>

> num_tokens: 256

>

> seed_provider:

>

>   - class_name: org.apache.cassandra.locator.SimpleSeedProvider

>

>     parameters:

>

>          - seeds: "10.28.205.126"

>

> listen_address: 10.28.205.126

>

> rpc_address: 0.0.0.0

>

> endpoint_snitch: RackInferringSnitch

>

>

>

> Nodetool shows both nodes active in the ring, status = up, state = normal.

>

>

>

> For the CF:

>

>

>

>    ColumnFamily: SystemEvent

>

>      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type

>

>      Default column value validator:

> org.apache.cassandra.db.marshal.UTF8Type

>

>      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type

>

>      GC grace seconds: 864000

>

>      Compaction min/max thresholds: 4/32

>

>      Read repair chance: 0.1

>

>      DC Local Read repair chance: 0.0

>

>      Replicate on write: true

>

>      Caching: KEYS_ONLY

>

>      Bloom Filter FP chance: default

>

>      Built indexes: [SystemEvent.IdxName]

>

>      Column Metadata:

>

>        Column Name: eventTimeStamp

>

>          Validation Class: org.apache.cassandra.db.marshal.DateType

>

>        Column Name: name

>

>          Validation Class: org.apache.cassandra.db.marshal.UTF8Type

>

>          Index Name: IdxName

>

>          Index Type: KEYS

>

>      Compaction Strategy:

> org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy

>

>      Compression Options:

>

>        sstable_compression:

> org.apache.cassandra.io.compress.SnappyCompressor

>

>

>

> Any ideas?

Mime
View raw message