Create column family with Composite key column via thrift API

2012-10-11 Thread Vivek Mishra
Hi, I know one way is to execute cql query via thrift client to create a column family having compound primary/composite columns. But is it the only way? Looks like i would end up creating own "CQLTranslator/Wrapper" to deal with compound primary/composite columns!(Or may be something else in n

Re: Create column family fail

2012-06-26 Thread Juan Ezquerro
Ok the '--' was the problem ... LOL 2012/6/26 Juan Ezquerro > Hi, > > I create this column family: > > > CREATE COLUMN FAMILY Clients > WITH column_type='Super' > AND key_validation_class = LongType -- master_id > A

Create column family fail

2012-06-26 Thread Juan Ezquerro
Hi, I create this column family: CREATE COLUMN FAMILY Clients WITH column_type='Super' AND key_validation_class = LongType -- master_id AND comparator = LongType -- client_id AND subcomparator = UTF8Type AND column_metadata = [ {column_name: client_name, valida

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-23 Thread Roshan Dawrani
On Wed, May 23, 2012 at 3:07 PM, aaron morton wrote: > When you say > > comparator=BytesType > > > You are telling cassandra that the column names in the CF's are just > bytes. But when you create the column meta data you are specifying the > column names as strings. > > use UTF8Type as the compa

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-23 Thread aaron morton
reelance Developer @aaronmorton http://www.thelastpickle.com On 22/05/2012, at 11:09 PM, Roshan Dawrani wrote: > Hi, > > I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I run a > "create column family" command with some column meta-data and it runs fine, >

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread samal
Type > Index Name: ACUserIdIdx > Index Type: KEYS > > > On Tue, May 22, 2012 at 6:16 PM, samal wrote: > >> Change your comparator to utf8type. >> On 22-May-2012 4:32 PM, "Roshan Dawrani" wrote: >> >>> Hi, >>> &

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
:32 PM, "Roshan Dawrani" wrote: > >> Hi, >> >> I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I >> run a "create column family" command with some column meta-data and it runs >> fine, but when I do "describe keyspace", i

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread samal
Change your comparator to utf8type. On 22-May-2012 4:32 PM, "Roshan Dawrani" wrote: > Hi, > > I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I > run a "create column family" command with some column meta-data and it runs > fine, but when

Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
Hi, I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I run a "create column family" command with some column meta-data and it runs fine, but when I do "describe keyspace", it shows me different column names for those index columns. a) Here is what I

Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
Hi, I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I run a "create column family" command with some column meta-data and it runs fine, but when I do "describe keyspace", it shows me different column names for those index columns. a) Here is what I

Re: problem in create column family

2012-03-31 Thread puneet loya
thank u *:))* On Sat, Mar 31, 2012 at 4:51 AM, aaron morton wrote: > This works… > > > create column family student > with comparator = 'AsciiType' > and column_metadata = > [{ > column_name : name, > validation_class : 'AsciiType' >

Re: create column family

2012-03-30 Thread Ben McCann
pt: >> >> >> create COLUMNFAMILY users >> >> (KY uuid PRIMARY KEY*,* >> >> firstname text, >> >> lastname text, >> >> email text, >> >> address text, >> >> zip int, >> >> state text);** >> >&g

Re: create column family

2012-03-30 Thread aaron morton
> email text, > > address text, > > zip int, > > state text); > > > From: puneet loya [mailto:puneetl...@gmail.com] > Sent: Tuesday, March 27, 2012 5:54 PM > To: user@cassandra.apache.org > Subject: create column family > > > create colum

Re: problem in create column family

2012-03-30 Thread aaron morton
This works… create column family student with comparator = 'AsciiType' and column_metadata = [{ column_name : name, validation_class : 'AsciiType' }]; * use compatator instead of coluimn_type. * closing ' missing Cheers - Aaron M

Re: create column family

2012-03-27 Thread puneet loya
27, 2012 5:54 PM > *To:* user@cassandra.apache.org > *Subject:* create column family > > > > create column family users > > (uuid PRIMARY KEY > > firstname text, > > lastname text, > > email text, > > address text, > > zip int, >

create column family

2012-03-27 Thread puneet loya
create column family users (uuid PRIMARY KEY firstname text, lastname text, email text, address text, zip int, state text); Is dis above statement correct? I m getting an error " Syntax error at position 27: missing EOF at '(' " Do reply Can u suggest the most stable version of cassandra??

Re: problem in create column family

2012-03-27 Thread puneet loya
create column family student with column_type = 'AsciiType' and column_metadata = [{ column_name : name, validation_class : 'AsciiType }]; On Tue, Mar 27, 2012 at 1:48 PM, Guy Incognito wrote: > why don't you show us the command you're actually trying to

Re: problem in create column family

2012-03-27 Thread Guy Incognito
can i use comparator='utf8' or not?? Please reply On Mon, Mar 26, 2012 at 9:17 PM, R. Verlangen mailto:ro...@us2.nl>> wrote: You should use the full type names, e.g. create column family MyColumnFamily with comparator=UTF8Type;

Re: problem in create column family

2012-03-27 Thread puneet loya
ype before.. It gave the same error. >> >> On executing help assume command it is giving 'utf8' as a type. >> >> so can i use comparator='utf8' or not?? >> >> >> Please reply >> >> >> On Mon, Mar 26, 2012 at 9:

Re: problem in create column family

2012-03-26 Thread R. Verlangen
; so can i use comparator='utf8' or not?? > > > Please reply > > > On Mon, Mar 26, 2012 at 9:17 PM, R. Verlangen wrote: > >> You should use the full type names, e.g. >> >> create column family MyColumnFamily with comparator=UTF8Type; >> >&g

Re: problem in create column family

2012-03-26 Thread puneet loya
names, e.g. > > create column family MyColumnFamily with comparator=UTF8Type; > > > 2012/3/26 puneet loya > >> It is giving errors like " Unable to find abstract-type class >> 'org.apache.cassandra.db.marshal.utf8' " >> >> and java.lan

Re: problem in create column family

2012-03-26 Thread R. Verlangen
You should use the full type names, e.g. create column family MyColumnFamily with comparator=UTF8Type; 2012/3/26 puneet loya > It is giving errors like " Unable to find abstract-type class > 'org.apache.cassandra.db.marshal.utf8' " > >

problem in create column family

2012-03-26 Thread puneet loya
It is giving errors like " Unable to find abstract-type class 'org.apache.cassandra.db.marshal.utf8' " and java.lang.RuntimeException: org.apache.cassandra.db.marshal.MarshalException: cannot parse 'catalogueId' as hex bytes where catalogueId is a column that has utf8 as its data type. they may b

RE: Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-22 Thread Don Smith
not too late to deprecate the old, unclear syntax. Don From: ehers...@gmail.com [ehers...@gmail.com] Sent: Thursday, December 22, 2011 10:20 AM To: user@cassandra.apache.org Subject: Re: Suggestion about syntax of CREATE COLUMN FAMILY Doesn't CQL have t

Re: Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-22 Thread ehers...@gmail.com
m:* Stephen Pope [stephen.p...@quest.com] > *Sent:* Monday, December 12, 2011 6:34 AM > *To:* user@cassandra.apache.org > *Subject:* RE: Suggestion about syntax of CREATE COLUMN FAMILY > > I’d like to second this. I’ve been working with Cassandra for a good > while now, but when

RE: Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-22 Thread Don Smith
t; cqlsh is 'the future.'" Don From: Stephen Pope [stephen.p...@quest.com] Sent: Monday, December 12, 2011 6:34 AM To: user@cassandra.apache.org Subject: RE: Suggestion about syntax of CREATE COLUMN FAMILY I’d like to second this. I’ve been working

Re: Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-22 Thread R. Verlangen
fusing. > > > ** ** > > *From:* Don Smith [mailto:dsm...@likewise.com] > *Sent:* Friday, December 09, 2011 3:41 PM > *To:* user@cassandra.apache.org > *Subject:* Suggestion about syntax of CREATE COLUMN FAMILY > > ** ** > > Currently, the syntax for creating co

RE: Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-12 Thread Stephen Pope
syntax of CREATE COLUMN FAMILY Currently, the syntax for creating column families is like this: create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type; It's not clear what "comparator" and "default_validation_

Suggestion about syntax of CREATE COLUMN FAMILY

2011-12-09 Thread Don Smith
Currently, the syntax for creating column families is like this: create column family Users with comparator=UTF8Type and default_validation_class=UTF8Type and key_validation_class=UTF8Type; It's not clear what "comparator" and "default_validation_class" refer to. Much

Re: cassandra-cli: Create column family with composite column name

2011-10-05 Thread aaron morton
ng it easier for the next person, I > repurposed this message to document what I figured out. I'll also > update the wiki. Here is the syntax: > > create column family MyCF >with key_validation_class = 'CompositeType(UTF8Type, IntegerType)' >and comp

cassandra-cli: Create column family with composite column name

2011-10-05 Thread Jim Ancona
n the hope of making it easier for the next person, I repurposed this message to document what I figured out. I'll also update the wiki. Here is the syntax: create column family MyCF with key_validation_class = 'CompositeType(UTF8Type, IntegerType)' and comparator = 'Compos

Re: create column family or keyspace returns null

2011-08-05 Thread myreasoner
That does the trick. Thanks. I should've read FAQ more thoroughly. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/create-column-family-or-keyspace-returns-null-tp6658215p6658464.html Sent from the cassandra-u...@incubator.apache.org ma

Re: create column family or keyspace returns null

2011-08-05 Thread Jonathan Ellis
e 139) Fatal exception in thread Thread[HintedHandoff:4,1,main] > > keeps on coming back.  And I still can't create any column family or > keyspace. > > -- > View this message in context: > http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/create-

Re: create column family or keyspace returns null

2011-08-05 Thread myreasoner
space. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/create-column-family-or-keyspace-returns-null-tp6658215p6658286.html Sent from the cassandra-u...@incubator.apache.org mailing list archive at Nabble.com.

Re: create column family or keyspace returns null

2011-08-05 Thread Jonathan Ellis
seeing the > exact problem reported in > https://issues.apache.org/jira/browse/CASSANDRA-2946.  And any "create > column family xyz" returns null.  Is it related to CASSANDRA-2946? > > -- > View this message in context: > http://cassandra-user-incubator-apache-org.30651

create column family or keyspace returns null

2011-08-05 Thread myreasoner
I got a 5-node cluster running on 0.8.2. From the system log I'm seeing the exact problem reported in https://issues.apache.org/jira/browse/CASSANDRA-2946. And any "create column family xyz" returns null. Is it related to CASSANDRA-2946? -- View this message in context: http:/

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
k, didn´t know that. Now it starts up, but throws a new exception: > > --------- Log -- > > [defa...@test] create column family Test with comparator=LexicalUUIDType > and column_metadata=[{column_name:test1, validation_class:LexicalUUIDType, > index_type

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread Aaron Morton
ata.  AaronOn 17 Nov, 2010,at 10:29 AM, André Fiedler wrote:Ah ok, didn´t know that. Now it starts up, but throws a new exception:- Log --[defa...@test] create column family Test with comparator=LexicalUUIDType and column_metadata

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
Ah ok, didn´t know that. Now it starts up, but throws a new exception: - Log -- [defa...@test] create column family Test with comparator=LexicalUUIDType and column_metadata=[{column_name:test1, validation_class:LexicalUUIDType, index_type:0

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread Aaron Morton
startup. And get the log below. How to fix this? ----- Action ------ create column family Test with comparator=LexicalUUIDType and column_metadata=[     {column_name:test1, validation_class:LexicalUUIDType, index_type:0, index_name:test1},     {column_name:test2, validatio

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
an...@googlemail.com> wrote: >>> >>>> I try to perform the following action after a clean startup. And get the >>>> log below. How to fix this? >>>> >>>> - Action -- >>>> >>>&g

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
6, 2010 at 3:38 PM, André Fiedler < >> fiedler.an...@googlemail.com> wrote: >> >>> I try to perform the following action after a clean startup. And get the >>> log below. How to fix this? >>> >>> - Action -

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
he following action after a clean startup. And get the >> log below. How to fix this? >> >> ----- Action -- >> >> create column family Test with comparator=LexicalUUIDType and >> column_metadata=[ >>

Re: Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread Jake Luciani
- Action ------ > > create column family Test with comparator=LexicalUUIDType and > column_metadata=[ > > {column_name:test1, validation_class:LexicalUUIDType, index_type:0, > index_name:test1}, > > {column_name:test2, validation_class:UTF8Ty

Cassandra 0.7-beta3 - IndexOutOfBoundsException when create column family

2010-11-16 Thread André Fiedler
I try to perform the following action after a clean startup. And get the log below. How to fix this? - Action -- create column family Test with comparator=LexicalUUIDType and column_metadata=[ {column_name:test1

Re: create column family throws an error

2010-10-13 Thread Jonathan Ellis
This is fixed in trunk. On Wed, Oct 13, 2010 at 5:41 PM, Dmitri Smirnov wrote: > I am experiencing an error while using cassandra_cli while attempting to > create a column familiy. > Using 0.7beta2. > > create column family ABTest with column_type = 'Super' and comp

create column family throws an error

2010-10-13 Thread Dmitri Smirnov
I am experiencing an error while using cassandra_cli while attempting to create a column familiy. Using 0.7beta2. create column family ABTest with column_type = 'Super' and comparator = 'LongType' and rows_cached = 1 and subcomparator = 'UTF8Type' and