`
chakey
  • 浏览: 360277 次
  • 性别: Icon_minigender_1
  • 来自: 水星
社区版块
存档分类
最新评论

bin/cassandra-cli报java.net.ConnectException: Connection refused错误

阅读更多

 

hosts中

192.168.27.27  localhost

bin/cassandra-cli 

 

cassandra> connect localhost/9160 正常

cassandra> connect 192.168.27.27/9160 出现异常:

java.net.ConnectException: Connection refused

 而且无法进行远程连接。

 

需要修改 conf/ cassandra.yaml

将里面的

listen_address: 192.168.27.164(本地的静态IP地址,改为IP的目的是可以远程连接)

rpc_address: 192.168.27.164

这样就可以进行远程连接了。

 

注意:0.7版本前配置文件为conf/storage-conf.xml;0.70版本之后变化为conf/cassandra.yaml

需要修改conf/log4j-server.properties

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics