dse驱动程序连接被拒绝 [英] dse-driver connection refused
本文介绍了dse驱动程序连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试连接到我在服务器上安装的Datastax企业级Cassandra.当我尝试连接时收到错误消息:
I am trying to connect to my Datastax enterprise Cassandra install on a server. When I try to connect I receive an error:
Cassandra connection error { [Error: All host(s) tried for query failed. First host tried, XX.XX.XX.XX:9042: Error: connect ECONNREFUSED XX.XX.XX.XX:9042. See innerErrors.]
innerErrors:
{ 'XX.XX.XX.XX:9042':
{ Error: connect ECONNREFUSED XX.XX.XX.XX:9042
at Object.exports._errnoException (util.js:896:11)
at exports._exceptionWithHostPort (util.js:919:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1073:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: 'XX.XX.XX.XX',
port: 9042 } },
info: 'Represents an error when a query cannot be performed because no host is available or could be reached by the driver.',
message: 'All host(s) tried for query failed. First host tried, XX.XX.XX.XX:9042: Error: connect ECONNREFUSED XX.XX.XX.XX:9042. See innerErrors.' }
我猜cassandra.yaml中的某些内容限制了到本地主机的连接?
I am guessing something in cassandra.yaml is restricting connection to localhost?
任何帮助将不胜感激! 我的cassandra.yaml发布太久了,如果需要,我可以发布链接
Any help would be super appreciated! My cassandra.yaml is a bit too long to post, if needed I can publish a link
推荐答案
答案在/etc/dse/cassandra/cassandra.yaml
The answer was in /etc/dse/cassandra/cassandra.yaml
broadcast_rpc_address: <node_address (ex: 127.0.0.1)>
rpc_port: 9160 # <-- Probably, unless you changed it
listen_address: localhost # <-- Cassandra to cassandra communication
这篇关于dse驱动程序连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文