OpsCenter 5.0.1 代理连接失败



opscenter agent 无法连接到 opscenter。

Opscenter 的代理.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没有什么特别的。

我的配置如下。

操作中心配置。

$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

所以我检查端口。

$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

有人可以帮助我吗?

所以我在OpsCenter诊断输出中有一个稍微不同的消息:调用 CreateClusterConfController 时出现处理错误:无法连接到群集

但是,我也在运行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 再次连接。

最新更新