You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by puneet loya <pu...@gmail.com> on 2012/03/27 14:01:26 UTC

counter column family

Can u give an example of create column family with counter column in it.


Please reply


Regards,

Puneet Loya

RE: counter column family

Posted by Rishabh Agrawal <ri...@impetus.co.in>.
As far as I know counter column family may pose serious consistency issues as they don't store timestamp. Correct me if I am wrong.

From: R. Verlangen [mailto:robin@us2.nl]
Sent: Tuesday, March 27, 2012 5:50 PM
To: user@cassandra.apache.org
Subject: Re: counter column family

create column family MyCounterColumnFamily with default_validation_class=CounterColumnType and key_validation_class=UTF8Type and comparator=UTF8Type;

There you go! Keys must be utf8, as well as the column names. Of course you can change those validators.

Cheers!
2012/3/27 puneet loya <pu...@gmail.com>>
Can u give an example of create column family with counter column in it.


Please reply


Regards,

Puneet Loya



--
With kind regards,

Robin Verlangen
www.robinverlangen.nl<http://www.robinverlangen.nl>


________________________________

Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more about our Big Data quick-start program at the event.

New Impetus webcast 'Cloud-enabled Performance Testing vis-?-vis On-premise' available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: counter column family

Posted by aaron morton <aa...@thelastpickle.com>.
You may have better luck with Hector specific questions on the Hector User Group https://groups.google.com/forum/?fromgroups#!forum/hector-users

Cheers
 
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 4/04/2012, at 5:54 PM, Tamar Fraenkel wrote:

> Hi!
> So, if I am using Hector, I need to do:
> cassandraHostConfigurator.setRetryDownedHosts(false)?
> 
> How will this affect my application generally?
> 
> Thanks
> 
> Tamar Fraenkel 
> Senior Software Engineer, TOK Media 
> 
> <tokLogo.png>
> 
> tamar@tok-media.com
> Tel:   +972 2 6409736 
> Mob:  +972 54 8356490 
> Fax:   +972 2 5612956 
> 
> 
> 
> 
> 
> On Tue, Mar 27, 2012 at 4:25 PM, R. Verlangen <ro...@us2.nl> wrote:
> You should use a connection pool without retries to prevent a "single" increment of +1 have a result of e.g. +3.
> 
> 
> 2012/3/27 Rishabh Agrawal <ri...@impetus.co.in>
> You can even define how much increment you want. But let me just warn you, as far my knowledge, it has consistency issues.
> 
>  
> From: puneet loya [mailto:puneetloya@gmail.com] 
> Sent: Tuesday, March 27, 2012 5:59 PM
> 
> 
> To: user@cassandra.apache.org
> Subject: Re: counter column family
> 
>  
> thanxx a ton :) :)
> 
>  
> the counter column family works synonymous as 'auto increment' in other databases rite?
> 
>  
> I mean we have a column of  type integer which increments with every insert.
> 
>  
> Am i goin the rite way??
> 
>  
> please reply :)
> 
> On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:
> 
> create column family MyCounterColumnFamily with default_validation_class=CounterColumnType and key_validation_class=UTF8Type and comparator=UTF8Type; 
> 
>  
> There you go! Keys must be utf8, as well as the column names. Of course you can change those validators.
> 
>  
> Cheers!
> 
>  
> 2012/3/27 puneet loya <pu...@gmail.com>
> 
> Can u give an example of create column family with counter column in it. 
> 
>  
>  
> Please reply
> 
>  
>  
> Regards,
> 
>  
> Puneet Loya
> 
> 
> 
>  
> -- 
> With kind regards,
> 
>  
> Robin Verlangen
> 
> www.robinverlangen.nl
> 
>  
>  
> 
> 
> Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more about our Big Data quick-start program at the event. 
> 
> New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis On-premise’ available at http://bit.ly/z6zT4L. 
> 
> 
> NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
> 
> 
> 
> -- 
> With kind regards,
> 
> Robin Verlangen
> www.robinverlangen.nl
> 
> 


Re: counter column family

Posted by Tamar Fraenkel <ta...@tok-media.com>.
Hi!
So, if I am using Hector, I need to do:
cassandraHostConfigurator.setRetryDownedHosts(false)?

How will this affect my application generally?

Thanks

*Tamar Fraenkel *
Senior Software Engineer, TOK Media

[image: Inline image 1]

tamar@tok-media.com
Tel:   +972 2 6409736
Mob:  +972 54 8356490
Fax:   +972 2 5612956





On Tue, Mar 27, 2012 at 4:25 PM, R. Verlangen <ro...@us2.nl> wrote:

> You should use a connection pool without retries to prevent a "single"
> increment of +1 have a result of e.g. +3.
>
>
> 2012/3/27 Rishabh Agrawal <ri...@impetus.co.in>
>
>>  You can even define how much increment you want. But let me just warn
>> you, as far my knowledge, it has consistency issues.
>>
>>
>>
>> *From:* puneet loya [mailto:puneetloya@gmail.com]
>> *Sent:* Tuesday, March 27, 2012 5:59 PM
>>
>> *To:* user@cassandra.apache.org
>> *Subject:* Re: counter column family
>>
>>
>>
>> thanxx a ton :) :)
>>
>>
>>
>> the counter column family works synonymous as 'auto increment' in other
>> databases rite?
>>
>>
>>
>> I mean we have a column of  type integer which increments with every
>> insert.
>>
>>
>>
>> Am i goin the rite way??
>>
>>
>>
>> please reply :)
>>
>> On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:
>>
>> *create column family MyCounterColumnFamily with
>> default_validation_class=CounterColumnType and
>> key_validation_class=UTF8Type and comparator=UTF8Type;*
>>
>>
>>
>> There you go! Keys must be utf8, as well as the column names. Of course
>> you can change those validators.
>>
>>
>>
>> Cheers!
>>
>>
>>
>> 2012/3/27 puneet loya <pu...@gmail.com>
>>
>> Can u give an example of create column family with counter column in it.
>>
>>
>>
>>
>>
>> Please reply
>>
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>> Puneet Loya
>>
>>
>>
>>
>>
>> --
>> With kind regards,
>>
>>
>>
>> Robin Verlangen
>>
>> www.robinverlangen.nl
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22.
>> Know more about our Big Data quick-start program at the event.
>>
>> New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
>> On-premise’ available at http://bit.ly/z6zT4L.
>>
>>
>> NOTE: This message may contain information that is confidential,
>> proprietary, privileged or otherwise protected by law. The message is
>> intended solely for the named addressee. If received in error, please
>> destroy and notify the sender. Any use of this email is prohibited when
>> received in error. Impetus does not represent, warrant and/or guarantee,
>> that the integrity of this communication has been maintained nor that the
>> communication is free of errors, virus, interception or interference.
>>
>
>
>
> --
> With kind regards,
>
> Robin Verlangen
> www.robinverlangen.nl
>
>

Re: counter column family

Posted by Tyler Hobbs <ty...@datastax.com>.
On Tue, Mar 27, 2012 at 9:35 AM, puneet loya <pu...@gmail.com> wrote:

> now i want to have a field incrementing with every row insertion. how do i
> do it in cassandra??


There's nothing that will do it automatically.  You need to increment it
yourself.

-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Re: counter column family

Posted by puneet loya <pu...@gmail.com>.
now i want to have a field incrementing with every row insertion. how do i
do it in cassandra??

On Tue, Mar 27, 2012 at 7:34 PM, Dave Brosius <db...@mebigfatguy.com>wrote:

>  Counter columns are special, they must be in a column family to
> themselves.
>
> On 03/27/2012 09:32 AM, puneet loya wrote:
>
> wen i m using a counter column.. i m nt able to add columns of other type
> to the column family.. is it so or it is just synactical error??
>
>  [default@CMDCv99] create column family status
> ...         with comparator = AsciiType
> ...         and column_metadata =
> ...         [{
> ...             column_name : Test,
> ...             validation_class : IntegerType,
> ...             index_type : 0,
> ...             index_name : IdxName},
> ...         {
> ...             column_name : 'other name',
> ...             validation_class : CounterColumnType
> ...         }];
> Cannot add a counter column (other name) in a non counter column family
>
> On Tue, Mar 27, 2012 at 6:55 PM, R. Verlangen <ro...@us2.nl> wrote:
>
>> You should use a connection pool without retries to prevent a "single"
>> increment of +1 have a result of e.g. +3.
>>
>>
>> 2012/3/27 Rishabh Agrawal <ri...@impetus.co.in>
>>
>>>  You can even define how much increment you want. But let me just warn
>>> you, as far my knowledge, it has consistency issues.
>>>
>>>
>>>
>>> *From:* puneet loya [mailto:puneetloya@gmail.com]
>>> *Sent:* Tuesday, March 27, 2012 5:59 PM
>>>
>>> *To:* user@cassandra.apache.org
>>> *Subject:* Re: counter column family
>>>
>>>
>>>
>>> thanxx a ton :) :)
>>>
>>>
>>>
>>> the counter column family works synonymous as 'auto increment' in other
>>> databases rite?
>>>
>>>
>>>
>>> I mean we have a column of  type integer which increments with every
>>> insert.
>>>
>>>
>>>
>>> Am i goin the rite way??
>>>
>>>
>>>
>>> please reply :)
>>>
>>> On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:
>>>
>>> *create column family MyCounterColumnFamily with
>>> default_validation_class=CounterColumnType and
>>> key_validation_class=UTF8Type and comparator=UTF8Type;*
>>>
>>>
>>>
>>> There you go! Keys must be utf8, as well as the column names. Of course
>>> you can change those validators.
>>>
>>>
>>>
>>> Cheers!
>>>
>>>
>>>
>>> 2012/3/27 puneet loya <pu...@gmail.com>
>>>
>>> Can u give an example of create column family with counter column in it.
>>>
>>>
>>>
>>>
>>>
>>> Please reply
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> Puneet Loya
>>>
>>>
>>>
>>>
>>>
>>> --
>>> With kind regards,
>>>
>>>
>>>
>>> Robin Verlangen
>>>
>>> www.robinverlangen.nl
>>>
>>>
>>>
>>>
>>>
>>>  ------------------------------
>>>
>>> Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22.
>>> Know more about our Big Data quick-start program at the event.
>>>
>>> New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
>>> On-premise’ available at http://bit.ly/z6zT4L.
>>>
>>>
>>> NOTE: This message may contain information that is confidential,
>>> proprietary, privileged or otherwise protected by law. The message is
>>> intended solely for the named addressee. If received in error, please
>>> destroy and notify the sender. Any use of this email is prohibited when
>>> received in error. Impetus does not represent, warrant and/or guarantee,
>>> that the integrity of this communication has been maintained nor that the
>>> communication is free of errors, virus, interception or interference.
>>>
>>
>>
>>
>>  --
>> With kind regards,
>>
>>  Robin Verlangen
>> www.robinverlangen.nl
>>
>>
>
>

Re: counter column family

Posted by Dave Brosius <db...@mebigfatguy.com>.
Counter columns are special, they must be in a column family to themselves.

On 03/27/2012 09:32 AM, puneet loya wrote:
> wen i m using a counter column.. i m nt able to add columns of other 
> type to the column family.. is it so or it is just synactical error??
>
> [default@CMDCv99] create column family status
> ...         with comparator = AsciiType
> ...         and column_metadata =
> ...         [{
> ...             column_name : Test,
> ...             validation_class : IntegerType,
> ...             index_type : 0,
> ...             index_name : IdxName},
> ...         {
> ...             column_name : 'other name',
> ...             validation_class : CounterColumnType
> ...         }];
> Cannot add a counter column (other name) in a non counter column family
>
> On Tue, Mar 27, 2012 at 6:55 PM, R. Verlangen <robin@us2.nl 
> <ma...@us2.nl>> wrote:
>
>     You should use a connection pool without retries to prevent a
>     "single" increment of +1 have a result of e.g. +3.
>
>
>     2012/3/27 Rishabh Agrawal <rishabh.agrawal@impetus.co.in
>     <ma...@impetus.co.in>>
>
>         You can even define how much increment you want. But let me
>         just warn you, as far my knowledge, it has consistency issues.
>
>         *From:*puneet loya [mailto:puneetloya@gmail.com
>         <ma...@gmail.com>]
>         *Sent:* Tuesday, March 27, 2012 5:59 PM
>
>
>         *To:* user@cassandra.apache.org <ma...@cassandra.apache.org>
>         *Subject:* Re: counter column family
>
>         thanxx a ton :) :)
>
>         the counter column family works synonymous as 'auto increment'
>         in other databases rite?
>
>         I mean we have a column of  type integer which increments with
>         every insert.
>
>         Am i goin the rite way??
>
>         please reply :)
>
>         On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <robin@us2.nl
>         <ma...@us2.nl>> wrote:
>
>         *create column family MyCounterColumnFamily with
>         default_validation_class=CounterColumnType and
>         key_validation_class=UTF8Type and comparator=UTF8Type;*
>
>         There you go! Keys must be utf8, as well as the column names.
>         Of course you can change those validators.
>
>         Cheers!
>
>         2012/3/27 puneet loya <puneetloya@gmail.com
>         <ma...@gmail.com>>
>
>         Can u give an example of create column family with counter
>         column in it.
>
>         Please reply
>
>         Regards,
>
>         Puneet Loya
>
>
>
>         -- 
>         With kind regards,
>
>         Robin Verlangen
>
>         www.robinverlangen.nl <http://www.robinverlangen.nl>
>
>
>         ------------------------------------------------------------------------
>
>         Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar
>         21-22. Know more about our Big Data quick-start program at the
>         event.
>
>         New Impetus webcast ‘Cloud-enabled Performance Testing
>         vis-à-vis On-premise’ available at http://bit.ly/z6zT4L.
>
>
>         NOTE: This message may contain information that is
>         confidential, proprietary, privileged or otherwise protected
>         by law. The message is intended solely for the named
>         addressee. If received in error, please destroy and notify the
>         sender. Any use of this email is prohibited when received in
>         error. Impetus does not represent, warrant and/or guarantee,
>         that the integrity of this communication has been maintained
>         nor that the communication is free of errors, virus,
>         interception or interference.
>
>
>
>
>     -- 
>     With kind regards,
>
>     Robin Verlangen
>     www.robinverlangen.nl <http://www.robinverlangen.nl>
>
>


Re: counter column family

Posted by puneet loya <pu...@gmail.com>.
wen i m using a counter column.. i m nt able to add columns of other type
to the column family.. is it so or it is just synactical error??

[default@CMDCv99] create column family status
...         with comparator = AsciiType
...         and column_metadata =
...         [{
...             column_name : Test,
...             validation_class : IntegerType,
...             index_type : 0,
...             index_name : IdxName},
...         {
...             column_name : 'other name',
...             validation_class : CounterColumnType
...         }];
Cannot add a counter column (other name) in a non counter column family

On Tue, Mar 27, 2012 at 6:55 PM, R. Verlangen <ro...@us2.nl> wrote:

> You should use a connection pool without retries to prevent a "single"
> increment of +1 have a result of e.g. +3.
>
>
> 2012/3/27 Rishabh Agrawal <ri...@impetus.co.in>
>
>>  You can even define how much increment you want. But let me just warn
>> you, as far my knowledge, it has consistency issues.
>>
>>
>>
>> *From:* puneet loya [mailto:puneetloya@gmail.com]
>> *Sent:* Tuesday, March 27, 2012 5:59 PM
>>
>> *To:* user@cassandra.apache.org
>> *Subject:* Re: counter column family
>>
>>
>>
>> thanxx a ton :) :)
>>
>>
>>
>> the counter column family works synonymous as 'auto increment' in other
>> databases rite?
>>
>>
>>
>> I mean we have a column of  type integer which increments with every
>> insert.
>>
>>
>>
>> Am i goin the rite way??
>>
>>
>>
>> please reply :)
>>
>> On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:
>>
>> *create column family MyCounterColumnFamily with
>> default_validation_class=CounterColumnType and
>> key_validation_class=UTF8Type and comparator=UTF8Type;*
>>
>>
>>
>> There you go! Keys must be utf8, as well as the column names. Of course
>> you can change those validators.
>>
>>
>>
>> Cheers!
>>
>>
>>
>> 2012/3/27 puneet loya <pu...@gmail.com>
>>
>> Can u give an example of create column family with counter column in it.
>>
>>
>>
>>
>>
>> Please reply
>>
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>> Puneet Loya
>>
>>
>>
>>
>>
>> --
>> With kind regards,
>>
>>
>>
>> Robin Verlangen
>>
>> www.robinverlangen.nl
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22.
>> Know more about our Big Data quick-start program at the event.
>>
>> New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
>> On-premise’ available at http://bit.ly/z6zT4L.
>>
>>
>> NOTE: This message may contain information that is confidential,
>> proprietary, privileged or otherwise protected by law. The message is
>> intended solely for the named addressee. If received in error, please
>> destroy and notify the sender. Any use of this email is prohibited when
>> received in error. Impetus does not represent, warrant and/or guarantee,
>> that the integrity of this communication has been maintained nor that the
>> communication is free of errors, virus, interception or interference.
>>
>
>
>
> --
> With kind regards,
>
> Robin Verlangen
> www.robinverlangen.nl
>
>

Re: counter column family

Posted by "R. Verlangen" <ro...@us2.nl>.
You should use a connection pool without retries to prevent a "single"
increment of +1 have a result of e.g. +3.

2012/3/27 Rishabh Agrawal <ri...@impetus.co.in>

>  You can even define how much increment you want. But let me just warn
> you, as far my knowledge, it has consistency issues.
>
>
>
> *From:* puneet loya [mailto:puneetloya@gmail.com]
> *Sent:* Tuesday, March 27, 2012 5:59 PM
>
> *To:* user@cassandra.apache.org
> *Subject:* Re: counter column family
>
>
>
> thanxx a ton :) :)
>
>
>
> the counter column family works synonymous as 'auto increment' in other
> databases rite?
>
>
>
> I mean we have a column of  type integer which increments with every
> insert.
>
>
>
> Am i goin the rite way??
>
>
>
> please reply :)
>
> On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:
>
> *create column family MyCounterColumnFamily with
> default_validation_class=CounterColumnType and
> key_validation_class=UTF8Type and comparator=UTF8Type;*
>
>
>
> There you go! Keys must be utf8, as well as the column names. Of course
> you can change those validators.
>
>
>
> Cheers!
>
>
>
> 2012/3/27 puneet loya <pu...@gmail.com>
>
> Can u give an example of create column family with counter column in it.
>
>
>
>
>
> Please reply
>
>
>
>
>
> Regards,
>
>
>
> Puneet Loya
>
>
>
>
>
> --
> With kind regards,
>
>
>
> Robin Verlangen
>
> www.robinverlangen.nl
>
>
>
>
>
> ------------------------------
>
> Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know
> more about our Big Data quick-start program at the event.
>
> New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
> On-premise’ available at http://bit.ly/z6zT4L.
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>



-- 
With kind regards,

Robin Verlangen
www.robinverlangen.nl

RE: counter column family

Posted by Rishabh Agrawal <ri...@impetus.co.in>.
You can even define how much increment you want. But let me just warn you, as far my knowledge, it has consistency issues.

From: puneet loya [mailto:puneetloya@gmail.com]
Sent: Tuesday, March 27, 2012 5:59 PM
To: user@cassandra.apache.org
Subject: Re: counter column family

thanxx a ton :) :)

the counter column family works synonymous as 'auto increment' in other databases rite?

I mean we have a column of  type integer which increments with every insert.

Am i goin the rite way??

please reply :)
On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl>> wrote:
create column family MyCounterColumnFamily with default_validation_class=CounterColumnType and key_validation_class=UTF8Type and comparator=UTF8Type;

There you go! Keys must be utf8, as well as the column names. Of course you can change those validators.

Cheers!

2012/3/27 puneet loya <pu...@gmail.com>>
Can u give an example of create column family with counter column in it.


Please reply


Regards,

Puneet Loya



--
With kind regards,

Robin Verlangen
www.robinverlangen.nl<http://www.robinverlangen.nl>



________________________________

Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more about our Big Data quick-start program at the event.

New Impetus webcast 'Cloud-enabled Performance Testing vis-?-vis On-premise' available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: counter column family

Posted by puneet loya <pu...@gmail.com>.
thanxx a ton :) :)

the counter column family works synonymous as 'auto increment' in other
databases rite?

I mean we have a column of  type integer which increments with every insert.

Am i goin the rite way??

please reply :)

On Tue, Mar 27, 2012 at 5:50 PM, R. Verlangen <ro...@us2.nl> wrote:

> *create column family MyCounterColumnFamily with
> default_validation_class=CounterColumnType and
> key_validation_class=UTF8Type and comparator=UTF8Type;*
>
> There you go! Keys must be utf8, as well as the column names. Of course
> you can change those validators.
>
> Cheers!
>
>
> 2012/3/27 puneet loya <pu...@gmail.com>
>
>> Can u give an example of create column family with counter column in it.
>>
>>
>> Please reply
>>
>>
>> Regards,
>>
>> Puneet Loya
>>
>
>
>
> --
> With kind regards,
>
> Robin Verlangen
> www.robinverlangen.nl
>
>

Re: counter column family

Posted by "R. Verlangen" <ro...@us2.nl>.
*create column family MyCounterColumnFamily with
default_validation_class=CounterColumnType and
key_validation_class=UTF8Type and comparator=UTF8Type;*

There you go! Keys must be utf8, as well as the column names. Of course you
can change those validators.

Cheers!

2012/3/27 puneet loya <pu...@gmail.com>

> Can u give an example of create column family with counter column in it.
>
>
> Please reply
>
>
> Regards,
>
> Puneet Loya
>



-- 
With kind regards,

Robin Verlangen
www.robinverlangen.nl