我试图运行Cassandra,但每次都是给同样的错误,而连接。。。在配置文件或属性文件中有什么我需要编辑的吗
('无法连接到任何服务器',{127.0.0.1:9042':错误(61,“尝试连接到[('127.0.0.1',9042)]。上一个错误:连接被拒绝(“)})
启动cassandra时出错
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000106116a8c, pid=27359, tid=0x0000000000006e03
#
# JRE version: OpenJDK Runtime Environment (8.0_275) (build 1.8.0_275-bre_2020_11_16_16_16-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.275-b00 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x564a8c]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/sandhyasingh/hs_err_pid27359.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Abort trap: 6
1条答案
按热度按时间nbnkbykc1#
这意味着你正在尝试连接到
localhost
但无论是:Cassandra没有跑,或者
你已经准备好了
rpc_address
除了localhost
运行此命令查看哪个ip地址为cql端口9042
绑定到:您需要连接到服务器正在侦听客户端的ip。干杯!