Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
连接到Cassandra时连接被拒绝_Cassandra - Fatal编程技术网

连接到Cassandra时连接被拒绝

连接到Cassandra时连接被拒绝,cassandra,Cassandra,我正在尝试运行cassandra,但每次连接时都会出现相同的错误。。。在配置文件或属性文件中有什么我需要编辑的吗 ('Unable to any server',{'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) a

我正在尝试运行cassandra,但每次连接时都会出现相同的错误。。。在配置文件或属性文件中有什么我需要编辑的吗

('Unable to any server',{'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

这意味着您正试图连接到
localhost
,但是:

  • 卡桑德拉没有跑,或者
  • 您已将
    rpc\u地址设置为
    localhost
运行此命令查看绑定到哪个IP地址CQL端口
9042

$ sudo lsof -nPi -sTCP:LISTEN

您需要连接到服务器正在侦听客户端的IP。干杯

是的,cassandra没有运行错误-#Java运行时环境检测到一个致命错误:#SIGSEGV(0xb)在pc=0x0000000106116a8c,pid=27359,tid=0x0000000000006e03#JRE版本:OpenJDK运行时环境(8.0#275)(构建1.8.0275-breߤ 16#-b00)Java虚拟机:OpenJDK 64位服务器(25.275-b00混合模式bsd-amd64压缩oops)#有问题的框架:#V[libjvm.dylib+0x564a8c]你能帮助我吗?我以前从未见过这样的错误(在Cassandra中)。这是在
system.log
中吗?这有点表明堆大小太大或太小。检查system.log文件中的日志。