cassandra-client-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Naryshkin" <konstant...@a-bb.net>
Subject Re: Cassandra 0.8 and Erlang
Date Mon, 20 Jun 2011 22:10:46 GMT
If anyone is interested, it was an issue of me using import instead of rr (which only loads
records, which, apparently, import did not).

----- Original Message -----
From: "Konstantin Naryshkin" <konstantinn@a-bb.net>
To: client-dev@cassandra.apache.org
Sent: Monday, June 20, 2011 2:28:05 AM
Subject: Re: Cassandra 0.8 and Erlang

Yeah, I have been trying to copy that one. I have been having trouble with the line:

ColumnPath = #columnPath{column_family="emails", column="username"},

The erl shell complains that columnPath is undefined.

----- Original Message -----
From: "aaron morton" <aaron@thelastpickle.com>
To: client-dev@cassandra.apache.org
Sent: Sunday, June 19, 2011 6:57:18 PM
Subject: Re: Cassandra 0.8 and Erlang

There is an erlang client here https://github.com/lpgauth/cassanderl no idea what the quality
or completeness is like. 

Cheers

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

On 18 Jun 2011, at 06:47, Konstantin Naryshkin wrote:

> I am working on getting an erlang application to write to Cassandra 0.8.0 . I installed
Thrift and used it to generate erlang from cassandra.thrift (using thrift --gen erl cassandra.thrift
). I tried to copy the syntax from several examples that I found, unfortunately I found the
following issue: Gets (the method that I am trying out) requires me to pass in a columnPath.
The syntax that I see in every example that I have looked at is something like: 
> 
> Cp = #columnPath{column_family="ipdr_usage"}. 
> 
> Which gives me an error of: "* 1: record columnPath undefined" 
> 
> I tried to import and compile just about everything I could think of. Obviously I tried
both 
> c(cassandra_types). 
> and 
> import(cassandra_types). 
> 
> I am very new at Erlang, so it may be something very stupid, but does any one have any
suggestion or any good examples of how to do it? 
> 
> Konstantin 


Mime
View raw message