Hey guys,

Excuse my noobishness here, we're working through the initial PoC phases of 
implementing Cassandra here on one of our major systems we're building, and I'm 
having a few problems.

I'm running Cassandra 0.5.1 on Fedora 12 in a VM on OS X, with the network 
interface running in bridged mode. I'm attempting to connect to it remotely 
from a separate Windows 7 workstation via C#, and getting this in the Cassandra 
logs:

Debugger failed to attach: handshake failed - received >[two binary bits< - 
excepted >JDWP-Handshake<

>From a code perspective, it's dying on the insert call:

            TTransport transport = new TSocket("10.223.131.19", 8888);
            TProtocol protocol = new TBinaryProtocol(transport);
            Cassandra.Client client = new Cassandra.Client(protocol);

            Console.WriteLine("Opening connection...");
            transport.Open();

            System.Text.Encoding utf8Encoding = System.Text.Encoding.UTF8;

            long timeStamp = DateTime.Now.Millisecond;
            ColumnPath nameColumnPath = new ColumnPath()
            {
                Column_family = "Standard1",
                Column = utf8Encoding.GetBytes("name")
            };

            Console.WriteLine("Inserting name columns...");

            //Insert the data into the column 'name' 
            client.insert("Keyspace1",
                          "1",
                          nameColumnPath,
                          utf8Encoding.GetBytes("Joe Bloggs"),
                          timeStamp,
                          ConsistencyLevel.ONE);


Am I doing something wrong here? ;)


TIA,
-Jason

Reply via email to