Search code examples
datastax-enterprise

Connecting to a Virtual Box Ubuntu DataStax Cassandra DSE using C# Driver


I am trying to connect using Datastax C# client driver on a Windows 7 box to DSE Cassandra running on a virtual box (Ubuntu). Here is my code:

Cluster _cluster = Cluster.Builder()
                      .WithPort(9042)
                      .AddContactPoint("192.168.1.136")
                      .Build();

I am getting this error : All host tried for query are in error (tried: 192.168.1.136)

I think the problem is that the remote machine (in this case a virtual box) is not accepting the connection.

Has any one connected from c# driver on Windows 7 to a remote Ubuntu running on virtual box ?


Solution

  • Finally figured it out. Set rpc_address: 192.168.1.136 on cassandra.yaml and it works now.