Cassandra错误总结

来源:互联网 发布:windows whistler2296 编辑:程序博客网 时间:2024/06/06 01:17

错误:Cassandra关闭后,重启,提示,7199端口被占用,分析原因是关闭时使用的ctrl+c,实际上并没有关闭cassandra服务进程,所以提示端口已被使用;
解决:

  1. 找出使用7199端口的进程
    netstat –apn | grep 7199
  2. 杀死残留进程
    kill direct_pid

错误:
Connection error: (‘Unable to connect to any servers’, {‘127.0.0.1’: ProtocolError(“cql_version ‘3.3.0’ is not supported by remote (w/ native protocol). Supported versions: [u’3.3.1’]”,)})
解决:
修改cassandra_home/bin/cqlsh.py:
DEFAULT_CQLVER = ‘3.3.0’为DEFAULT_CQLVER = ‘3.3.1’;

错误:
message: ‘All host(s) tried for query failed. First host tried, 127.0.0.1:9042: Error: connect ECONNREFUSED 127.0.0.1:9042. See innerErrors.’ }

解决:
修改cassandra_home/conf/cassandra.yaml:
start_native_transport=false改为start_native_transport=true;