无法连接到Datastax代理

无法连接到Datastax代理

本文介绍了无法连接到Datastax代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过opscenter连接到任何节点.在opscenter中,它表示需要连接代理才能使opscenter工作.我签入了datastax-agent/agent.log文件,发现以下错误.

I am unable to connect to any nodes through opscenter. In opscenter it says that agents need to be connected inorder for opscenter to work. I checked in datastax-agent/agent.log file and found below errors.

ERROR [clojure-agent-send-off-pool-0] 2016-01-27 09:30:54,545 Can't connect to Cassandra (All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect))), retrying soon.

我检查了9042和7199端口都在监听.

I checked port 9042 and 7199 both are listening..

x.x.x.10:9042   :::*                        LISTEN      497        499005     28550/java

pls建议..为此需要检查什么.谢谢

pls advise.. what needs to be checked for this. Thanks

推荐答案

cassandra.yaml中几乎没有用于调整网络连接参数的基本设置.

There are few basic settings in cassandra.yaml to tune network connection params.

  1. listen_address : localhost

要绑定到的地址或接口,并告诉其他Cassandra节点要连接.将其指定为localhost将始终执行正确的操作.将listen_address设置为0.0.0.0总是错误的

Address or interface to bind to and tell other Cassandra nodes to connect to. Specifying it to localhost will always do the Right Thing. Setting listen_address to 0.0.0.0 is always wrong

rpc_address : 0.0.0.0

与listen_address不同,您可以指定0.0.0.0,但是还必须将broadcast_rpc_address设置为0.0.0.0以外的值

That unlike listen_address, you can specify 0.0.0.0, but you must also set broadcast_rpc_address to a value other than 0.0.0.0

broadcast_rpc_address: localhost

此设置可能对节点之间从broadcast_rpc_address到rpc_address的重定向对话很有用(即机器具有两个网络接口)

This setting will be usefull probably for redirect conversation between nodes from broadcast_rpc_address to rpc_address (i.e. Machine has two network interfaces)

如果所有设置对于您的环境都是正确的,请尝试与控制台客户端cqlsh连接,然后尝试使用nodetool监视节点的状态.尝试运行OPC中心后

If all settings is correct for you environment try to connect with console client cqlsh and try to use nodetool for monitoring state of your nodes. After try to run OPC center

这篇关于无法连接到Datastax代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 12:34