我在其中一个cassandra集群节点上设置了opscenter。安装完成后,在设置我的集群时,我尝试通过UI在所有集群节点上安装datastax代理,但是失败了。所以,我必须手动安装代理。
手动安装代理后,安装opscenter的节点可以连接,但不能连接其他节点。它仍然说," 2个代理商未能连接"。可能是什么问题?
PS:我的cassandra集群在ubuntu上的AWS上设置
我的agent.log文件看起来像这样
ERROR [os-metrics-9] 2015-07-27 07:04:43,390 Long os-stats collector failed: Cannot run program "iostat": error=2, No such file or directory
ERROR [os-metrics-7] 2015-07-27 07:04:43,391 Long os-stats collector failed: Cannot run program "iostat": error=2, No such file or directory
ERROR [os-metrics-8] 2015-07-27 07:04:53,391 Long os-stats collector failed: Cannot run program "iostat": error=2, No such file or directory
ERROR [os-metrics-3] 2015-07-27 07:04:53,392 Long os-stats collector failed: Cannot run program "iostat": error=2, No such file or directory
ERROR [StompConnection receiver] 2015-07-27 07:05:02,946 failed connecting to **.**.**.**:61620:java.net.ConnectException: Connection timed out
答案 0 :(得分:3)
你必须在address.yaml中设置stomp_interface,如
stomp_interface: <ip-address>
代理重启后,应该连接。
答案 1 :(得分:3)
由于您的代理已能够从安装了opscenter的同一个盒子连接,所以听起来像是:
答案 2 :(得分:3)
代理使用iostat从磁盘收集一些信息。如果它找不到它你就会得到那个错误但它只是意味着那些指标会丢失一些os指标(很可能会丢失很多磁盘和cpu指标)
答案 3 :(得分:0)
在conf / address.yaml文件中手动启动代理时,请注意以下一些有用的配置:
###A name for the node to use as a label throughout OpsCenter.
alias:
###Reachable IP address of the opscenterd machine. The connection made will be on stomp_port. Internal IP in this case
stomp_interface:
###Port for the agent's HTTP service (default: 61621).
#api_port: 61621
###The stomp_port used by opscenterd. == Must match with the 'incoming_port' in opscenter.conf
stomp_port: 61620
###The IP used to identify the node.
local_interface: 100.73.158.44
###The IP that the agent HTTP server listens on.
agent_rpc_interface:
###Host used to connect to local JMX server.
jmx_host: 100.73.158.44
###Whether or not to use SSL communication between the agent and opscenterd.
use_ssl: 1
答案 4 :(得分:0)
要解决“无法运行程序'iostat'”错误,请执行以下操作:
sudo apt-get install sysstat