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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.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,我正在尝试通过命令访问远程cassendra数据库: cqlsh xx:x:x:x xxxx got below error: Connection error: ('Unable to connect to any servers', {'xx:x:x:x': ConnectionShutdown('Connection to xx:x:x:x was closed',) } ) 当我尝试访问本地主机时,出现错误: command: cql

我正在尝试通过命令访问远程cassendra数据库:

cqlsh xx:x:x:x xxxx
got below error:
Connection error: 
    ('Unable to connect to any servers', 
        {'xx:x:x:x': ConnectionShutdown('Connection to xx:x:x:x was closed',)
        }
    )
当我尝试访问本地主机时,出现错误:

command: cqlsh 
error:
Connection error: 
    ('Unable to connect to any servers', 
        {'127.0.0.1': error(111, 
        "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")}
    )

您需要检查在命令行中指定的给定IP和端口上是否可以访问Cassandra。如果未更改默认端口,则可以使用
cqlsh IP
。如果它不起作用,请检查您的防火墙是否不允许流量到达给定IP上的9042端口