【问题标题】:dse-driver connection refuseddse 驱动程序连接被拒绝
【发布时间】:2017-01-23 23:14:11
【问题描述】:

我正在尝试连接到我在服务器上安装的 Datastax 企业级 Cassandra。当我尝试连接时收到错误消息:

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 中的某些东西限制了与 localhost 的连接?

任何帮助将不胜感激! 我的 cassandra.yaml 有点长,无法发布,如果需要我可以发布链接

【问题讨论】:

    标签: cassandra datastax datastax-enterprise cassandra-node-driver


    【解决方案1】:

    答案在 /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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-07
      • 2017-08-08
      • 2021-05-05
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      相关资源
      最近更新 更多