opscenter 5.0.1代理连接失败

时间:2014-11-28 05:44:35

标签: cassandra agent stomp opscenter

opscenter agent无法与opscenter连接。

opscenter的agent.log显示如下错误。 (将IP替换为XX)

INFO [pdp-loader] 2014-11-28 12:03:53,517 Attempting to load stored metric values.
ERROR [StompConnection receiver] 2014-11-28 12:03:54,814 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>
 INFO [StompConnection receiver] 2014-11-28 12:03:54,814 Reconnecting in 6s.
ERROR [StompConnection receiver] 2014-11-28 12:04:00,814 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>
 INFO [StompConnection receiver] 2014-11-28 12:04:00,814 Reconnecting in 14s.
ERROR [StompConnection receiver] 2014-11-28 12:04:14,818 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>
 INFO [StompConnection receiver] 2014-11-28 12:04:14,818 Reconnecting in 30s.
ERROR [StompConnection receiver] 2014-11-28 12:04:44,822 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>
 INFO [StompConnection receiver] 2014-11-28 12:04:44,822 Reconnecting in 62s.
ERROR [StompConnection receiver] 2014-11-28 12:05:46,826 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>
 INFO [StompConnection receiver] 2014-11-28 12:05:46,826 Reconnecting in 60s.
ERROR [StompConnection receiver] 2014-11-28 12:06:46,830 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>

和opscenterd.log没什么特别的。

我的配置如下。

opscenter config。

$ cat opscenter-5.0.1 / conf / opscenterd.conf

[webserver]
port = 8888
interface = 0.0.0.0

[logging]

[authentication]
enabled = False

[stat_reporter]

[agents]
use_ssl = False

代理商配置。

$ cat datastax-agent-5.0.1 / conf / address.yaml

stomp_interface: <X.X.X.X>
use_ssl: 0

所以我chekc端口。

$netstat -an | grep 61620
tcp        0      0 0.0.0.0:61620               0.0.0.0:*                   LISTEN

$ telnet X.X.X.X 61620
Trying X.X.X.X...
Connected to X.X.X.X.
Escape character is '^]'.

似乎没问题。

但opscenter代理商一次又一次地向我显示错误......

 INFO [StompConnection receiver] 2014-11-28 12:05:46,826 Reconnecting in 60s.
ERROR [StompConnection receiver] 2014-11-28 12:06:46,830 failed connecting to <X.X.X.X>:61620:java.net.UnknownHostException: <X.X.X.X>

是另外....

我在CentOS 6.5版(最终版)上运行cassandra 2.1.2(3副本) 和内核:2.6.32-431.23.3.el6.x86_64

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

所以我在OpsCenter诊断输出中的消息略有不同: 调用CreateClusterConfController时处理Error:无法连接到集群

但是,我也在运行Cassandra 2.1.2和OpsCenter 5.0.1,直到我在cassandra.yaml中看到这个,我才能连接到现有的集群

listen_address
# You _must_ change this if you want multiple nodes to be able to communicate!
# Leaving it blank leaves it up to InetAddress.getLocalHost(). This
# will always do the Right Thing _if_ the node is properly configured
# (hostname, name resolution, etc), and the Right Thing is to use the
# address associated with the hostname (it might not be).

这似乎包括OpsCenter。所以我评论了它。我还注释掉了rpc_address,并让它自动配置。

请验证这些设置,重新启动cassandra,然后尝试通过OpsCenter重新连接。