cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Mishra <mishra.v...@gmail.com>
Subject Re: one or more nodes were unavailable.
Date Tue, 21 Jan 2014 06:10:13 GMT
1 have downloaded cassandra 2.x and set up on single machine. Started
Cassandra server and connecting via cqlsh. Created a column family and
inserting a single record into it(via cqlsh).

Wondering why it gives "No node available"

Even though simple insert queries(without CAS) works!

-Vivek


On Tue, Jan 21, 2014 at 11:33 AM, Drew Kutcharian <drew@venarc.com> wrote:

> If you are trying this out on a single node, make sure you set the
> replication_factor of the keyspace to one.
>
>
> On Jan 20, 2014, at 7:41 PM, Vivek Mishra <mishra.vivs@gmail.com> wrote:
>
> Single node and default consistency. Running via cqsh
>
>
> On Tue, Jan 21, 2014 at 1:47 AM, sankalp kohli <kohlisankalp@gmail.com>wrote:
>
>> Also do you have any nodes down...because it is possible to reach write
>> consistency and not do CAS because some machines are down.
>>
>>
>> On Mon, Jan 20, 2014 at 12:16 PM, sankalp kohli <kohlisankalp@gmail.com>wrote:
>>
>>> What consistency level are you using?
>>>
>>>
>>> On Mon, Jan 20, 2014 at 7:16 AM, Vivek Mishra <mishra.vivs@gmail.com>wrote:
>>>
>>>> Hi,
>>>> Trying CAS feature of cassandra 2.x and somehow getting given below
>>>> error:
>>>>
>>>>
>>>> cqlsh:sample> insert into "User"(user_id,first_name) values(
>>>> fe08e810-81e4-11e3-9470-c3aa8ce77cc4,'vivek1') if not exists;
>>>> Unable to complete request: one or more nodes were unavailable.
>>>> cqlsh:training>
>>>>
>>>>
>>>> cqlsh:sample> insert into "User"(user_id,first_name) values(
>>>> fe08e810-81e4-11e3-9470-c3aa8ce77cc4,'vivek1')
>>>>
>>>> It works fine.
>>>>
>>>> Any idea?
>>>>
>>>> -Vivek
>>>>
>>>>
>>>>
>>>
>>
>
>

Mime
View raw message