2

opscenter 代理无法连接到 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 没有什么特别之处。

我的配置如下。

操作中心配置。

$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

任何人都可以帮助我吗?

4

1 回答 1

0

所以我在 OpsCenter 诊断输出中有一条稍微不同的消息:ProcessingError while calling CreateClusterConfController: Unable to connect to cluster

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

于 2014-12-28T04:42:24.283 回答