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 には特別なことは何もありません。

以下の私の設定。

opscenter 構成。

$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 (最終) およびカーネル: 2.6.32-431.23.3.el6.x86_64 で cassandra 2.1.2(3 レプリカ) を実行しています。

誰でも私を助けることができますか?

4

1 に答える 1

0

そのため、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 経由で接続を再試行してください。

于 2014-12-28T04:42:24.283 に答える