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