How to get properties from Cassandra with get_slice in Erlang?

Posted by Zubair on Stack Overflow See other posts from Stack Overflow or by Zubair
Published on 2010-04-25T13:45:42Z Indexed on 2010/04/25 13:53 UTC
Read the original article Hit count: 197

Filed under:
|

I am using Erlang to interface with Cassandra and I cannot get the get_slice command to return a list of all the columns of a row. I use:

    X = thrift_client:call( C,
           'get_slice',
           [ "Keyspace1",
             K,
             #columnParent{column_family="KeyValue"},
             #slicePredicate{},
             1
             ] ),

: but I get back :

invalidRequestException,<<"predicate column_names and slice_range may not both be null">>

: However, using the cassandra-cli interface this works fine. Any ideas?

© Stack Overflow or respective owner

Related posts about erlang

Related posts about cassandra