从Windows连接到Cassandra沙箱 [英] Connecting to Cassandra sandbox from Windows

查看:102
本文介绍了从Windows连接到Cassandra沙箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有Cassandra的VMWare映像,该映像运行良好。我正在尝试从Windows 7主机操作系统进行连接,但连接被拒绝。我尝试使用telnet ipaddress 9160,但该端口似乎未打开。服务未运行或防火墙阻止了它。有人可以帮助您进行故障排除吗?

So I have the VMWare image of Cassandra which is running fine. I am trying to connect from the host OS which is Windows 7 and I am getting connection refused. I tried telnet ipaddress 9160 and the port does not seem to be open. Either the service is not running or a firewall is blocking it. Can someone help with troubleshooting?

推荐答案

如何配置VM的网络?您正在运行什么操作系统?这些是我们需要知道的细节。

How is your VM's network configured? And what OS are you running? These are details that we need to know.

我已经能够让Cassandra在Windows VM(在Windows主机上)的Ubuntu VM上运行,并且都带有桥接和 NAT:用于共享主机的IP地址网络选项。

I've been able to get Cassandra to run on an Ubuntu VM (on a Windows host) both with the "bridged" and "NAT: Used to share the host's IP address" network options.

检查VM上的IP地址,在Ubuntu上,我可以使用 ifconfig 。这是您应该用来从Windows主机进行连接的IP地址(应该与Windows主机IP不同)。

Check the IP address on your VM, which on Ubuntu I can do with ifconfig. That's the IP address you should be using to connect with from your Windows host (which should be different from your Windows host IP).

通过Windows应用程序代码,您应该可以连接

From your Windows application code, you should then be able to connect to Cassandra on your VM's IP address.

另外,检查 listen_address rpc_address < /cassandra.yaml中的/ code>值。这些应 not 设置为localhost,并且RPC地址应设置为VM的外部IP地址。希望这会有所帮助。

Also, check the listen_address and rpc_address values in your cassandra.yaml. These should not be set to localhost, and RPC address should be set to your VM's external IP address. Hope this helps.

这篇关于从Windows连接到Cassandra沙箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆