Error while creating Super Column using Hector API in Cassandra

21 views
Skip to first unread message

Keerthana Santhakumar

unread,
May 15, 2013, 5:49:03 AM5/15/13
to chenn...@googlegroups.com
Hi all,
 
I am getting the following error while creating super column in cassandra using Hector API. Please help me out.
 

me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:supercolumn parameter is invalid for standard CF Super1)

 

I tried the code from https://github.com/hector-client/hector/wiki/User-Guide#deleting-multiple-columns-with-mutator

 

Mutator<String> mutator =

HFactory.createMutator(keyspace, stringSerializer);

mutator.insert("billing", "Super1", HFactory.createSuperColumn("jsmith",

Arrays.asList(HFactory.createStringColumn("first", "John")),

stringSerializer, stringSerializer, stringSerializer));

 

Thanks,

Keerthana

Prasad S

unread,
May 15, 2013, 9:43:14 AM5/15/13
to chenn...@googlegroups.com
Hi Keerthana,
I think you are trying to create super column in normal column family. Try crating one wiht super column family.

Regards,
Prasad


--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Keerthana Santhakumar

unread,
May 15, 2013, 11:09:01 PM5/15/13
to chenn...@googlegroups.com
Thanks a lot Prasad. I solved the error.
 
Regards,
Keerthana

--
Keerthana Santhakumar
Reply all
Reply to author
Forward
0 new messages