【发布时间】:2017-04-19 02:41:27
【问题描述】:
我在 Ubuntu Server 14.04 的单个节点上运行 cassandra(IP 为 10.3.2.92,我通过 VPN 连接到服务器的同一网络)。 cassandra.yaml 文件中的以下参数已更改:
listen_address: 10.3.2.92
rpc_address: 10.3.2.92
- seeds: "10.3.2.92"
rpc_port: 9160 and native_transport_port: 9042, so they are set to default.
当我在我的机器上使用 OSX 时:
./cqlsh 10.3.2.92 9160
我收到以下错误:
Connection error: ('Unable to connect to any servers', {'10.3.2.92': error(None, "Tried connecting to [('10.3.2.92', 9042)]. Last error: timed out")})
在启动 cassandra 执行 sudo service dse start 之后,我已经在服务器上尝试了 nodetool enablethrift,但没有成功。我也在端口 9042 上试过。
我做错了什么?
提前致谢
编辑:
将 native_transport_port 更改为 8080 并且可以正常工作。我的专用网络管理员阻止了 9xxx 端口。
【问题讨论】:
标签: cassandra cql ubuntu-server