Here is the full snippet,
TSocket socket = null;
TTransport transport = null;
socket = new TSocket("localhost", 9160);
transport = new TFramedTransport(socket);
TProtocol protocol = new TBinaryProtocol(transport);
CassandraClient cassandraClient = new CassandraClient(protocol);
cassandraClient.InputProtocol.Transport.Open();
string s = cassandraClient.describe_cluster_name();
List<ksdef> keyspaces = cassandraClient.describe_keyspaces();
Hope this will help another poor soul.
0 comments:
Post a Comment