【问题标题】:Connecting to a Virtual Box Ubuntu DataStax Cassandra DSE using C# Driver使用 C# 驱动程序连接到 Virtual Box Ubuntu DataStax Cassandra DSE
【发布时间】:2013-07-26 02:18:08
【问题描述】:

我正在尝试使用 Windows 7 机器上的 Datastax C# 客户端驱动程序连接到在虚拟机器 (Ubuntu) 上运行的 DSE Cassandra。 这是我的代码:

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

我收到此错误:所有尝试查询的主机都出错(尝试:192.168.1.136)

我认为问题在于远程机器(在本例中为虚拟机)不接受连接。

是否有人从 Windows 7 上的 c# 驱动程序连接到在虚拟机上运行的远程 Ubuntu?

【问题讨论】:

  • 检查您的 Ubuntu 虚拟机上的配置,并确保您的 NIC 在“桥接”模式下运行。
  • 已经设置成桥接模式了。
  • 终于想通了。在 cassandra.yaml 上设置 rpc_address: 192.168.1.136 现在可以使用了。
  • 谢谢..它也对我有用

标签: datastax-enterprise


【解决方案1】:

终于明白了。在 cassandra.yaml 上设置 rpc_address: 192.168.1.136 即可。

【讨论】:

  • +1 这也帮助我找出了我的 Cass/VM 问题。
  • 谢谢这也救了我
猜你喜欢
  • 2017-12-23
  • 2013-12-23
  • 2016-02-18
  • 2015-08-16
  • 1970-01-01
  • 1970-01-01
  • 2018-04-16
  • 2023-03-21
  • 2014-11-07
相关资源
最近更新 更多