2017-02-19 125 views
1

因此,我在安装了OpsCenter的AWS计算机上运行单节点cassandra。我想从Windows机器(这是同一专用网络中的卡桑德拉节点)使用OpsCenter GUI管理它,但是我不断收到以下错误为Datastax OpsCenter提供cassandra.yaml的rpc_address和broadcast_rpc地址

“的代理没有HTTP通信” Opscenter日志显示以下信息 -

2017-02-19 18:08:17,622 [Test_Cluster]信息:节点172.18.51.175将模式更改为正常(MainThread) 2017-02-19 18:08:17,773 [ Test_Cluster] INFO:使用1.2.3.4作为节点的RPC地址172.18.51.175(MainThread) 2017-02-19 18:09:12,046 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51 .175']消息:HTTP请求http://1.2.3.4:61621/connection-status?失败:用户超时导致连接失败。 (MainThread) 2017-02-19 18:10:12,045 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息:HTTP请求http://1.2.3.4:61621/connection-status?失败:用户超时导致连接失败。 (MainThread) 2017-02-19 18:11:12,046 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息:HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:12:12,045 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:13:12,433 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:14:12,045 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:15:12,045 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:用户超时导致连接失败。 (MainThread) 2017-02-19 18:16:12,044 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息:HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:17:12,044 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread) 2017-02-19 18:18:12,045 [Test_Cluster]警告:这些节点报告了此消息,节点:['172.18.51.175']消息: HTTP请求http://1.2.3.4:61621/connection-status?失败:IPv4Address(TCP,'1.2.3.4',61621)(MainThread)

所以我想我的cassandra.yaml文件需要一些改变?

目前我已经设置listen_address作为我节点的私有IP

我rpc_address是0.0.0.0

和我broadcast_rpc_address被设置为1.2.3.4

哪个是datastax文档如何建议。

我尝试将rpc_address和broadcast_rpc_address设置为节点的私有IP,并且在该场景中也失败了。

netstat的--listen示出了下面线的端口61621和61620

TCP6 0 0 [:]:61620 [:]:* LISTEN TCP6 0 0 [:]:61621 [: :] * LISTEN

我不知道我在做什么错误或如何在cassandra.yaml中设置这些参数以使其与Opscenter一起使用。

注意:我似乎只在OpsCenter中遇到上述配置问题。 Cassandra服务启动正常,我的Web应用程序使用datastax驱动程序连接到群集。任何人都有可能出错的评论?

感谢

回答

0

我rpc_address是0.0.0.0

和我broadcast_rpc_address被设置为1.2.3.4

那是你的错,改rpc_address到本地IP - > 172.18.51.175 [如果这是节点IP]

检查cassandra.yaml文件,listen_address也设置为 - > 172.18.51.175

相关问题