Thanks for the quick response,
I have only one node. So the web client also should see the data, right ?. Below is the code which I am using to read.
socket = new TSocket(machine,port);
TProtocol tp = new TBinaryProtocol(socket);
cl = new Cassandra.Client(tp);
column_t u1 = cl.get_column("xmls","x1","content:xml");
System.out.println("xml : " + u1.value);
That looks reasonable. How are you reading the data back out? The
web interface only hits the local machine so it is not very useful in
a clustered situation.
On Thu, Apr 9, 2009 at 4:02 PM, Sam D <email@example.com> wrote:
> I am new to Cassandra, just installed the latest version on my machine. I
> am able to insert rows using the web (@7002), but I am not able to get a
> java client to insert rows into a table. Below the piece of code I am using,
> the insert call goes through fine without any exceptions, but I am not able
> to see the row in the table, so I assume its not being inserted properly.
> socket = new TSocket(machine,port);
> TProtocol tp = new TBinaryProtocol(socket);
> cl = new Cassandra.Client(tp);
> cl.insert("xmls", "x1", "content:xml", "xyz", 0);
> Can you please point me to any sample code available which I can refer to ?.