cassandra运行出现了Unable to gossip with any seeds,cqlsh链接不上,提示connection refused处理办法

问题描述

当启动了cassandra之后出现:

java.lang.RuntimeException: Unable to gossip with any seeds at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1160) at org.apache.cassandra.service.StorageService.checkForEndpointCollision (StorageService.java:416) at org.apache.cassandra.service.StorageService.joinTokenRing(StorageServ ice.java:608) at org.apache.cassandra.service.StorageService.initServer(StorageService .java:576) at org.apache.cassandra.service.StorageService.initServer(StorageService .java:475) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.ja va:346) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon .java:461) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.jav a:504)

出现这个问题的原因是cassandra.yaml配置文件的seeds 与 ip 设置错误。

Check your cassandra.yaml and make sure that your "listen_address" and "seeds" values match, with the exception that the seeds value requires quotes around it.

请检查seeds 和 listen_address 是一致的。

另外,如果你采用了我的上篇文章中的scutils方法设置了hostname, 那么请将seeds配置中的127.0.0.1改成你的hostname。

最新文章

  1. Linux0.11内核--内存管理之2.配合fork
  2. git cherry-pick合并某个commit
  3. 7个惊艳的HTML5 Canvas动画效果及源码
  4. 【转载】20分钟MySQL基础入门
  5. ubuntu eclipse 安装svn
  6. css3 文本记
  7. Pjax介绍及在asp.net MVC3中使用pjax的简单示例
  8. Show username instead of "System Account" in SharePoint 2010
  9. C#,Java,C++中的finally关键字
  10. 图片的 base64 编码
  11. HDU 1079 Calendar Game 博弈
  12. 选择法排序 vb.net
  13. JavaScript模块化 --- Commonjs、AMD、CMD、es6 modules
  14. 百度搜索推出惊雷算法严厉打击刷点击作弊行为-SEO公司分享
  15. 解决XShell不能使用小键盘的问题
  16. 15. DML, DDL, LOGON 触发器
  17. python调用C++之pybind11入门(相互调用)
  18. Asp.net Web Api开发Help Page 添加对数据模型生成注释的配置和扩展
  19. Jenkins系列-Jenkins构建触发器
  20. vSphereClient向ESXi主机分配许可证

热门文章

  1. HTTP协议综合
  2. Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
  3. 【转】java 线程的几种状态
  4. Linux shell中一些参数与变量简介
  5. 超具体Windows版本号编译执行React Native官方实例UIExplorer项目(多图慎入)
  6. CentOS7系统安装Nginx进行跨域处理
  7. ajax请求,返回值为304 Not Modified 错误原因与解决办法
  8. picasso 在魅族手机无法加载缩略图的bug
  9. ODI 创建Java EE Agent
  10. python之函数用法islower()