English 中文(简体)
cqlshLink 拒绝
原标题:cqlsh Connection refused

当你发现Casandra cqlsh联线错误时:

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")})
问题回答

You can also connect without using the IP address - just use the hostname: cqlsh ‘hostname -I’

另一种解决办法,即<代码>cqlsh <listen_address> [<port>],如果该办法不设于127.0.0.1 localhost

我与Casses 3.11.0有同样的问题,当时我改变了纸浆地址或听说花板的工作。 我不得不在<条码>上添加同一地方部分。

因此,在审判后,我 cas子错了。 y:

class-name: org.apache.cassandra.locator.SimpleSeedProvider
parameters: 
    -seeds: "192.168.0.30"

listen_adress: 192.168.0.30
rpc_address: 192.168.0.30

之后

cqlsh 192.168.0.30 9042

When I installed Cassandra 3.11.1, I came across this problem. I also found if I ran

履历

......

cas andra dead dead 死亡,但id

problem. It indicates that the Cassandra service does not start I checked the

/var/log/cassandra/cassandra.log。

发现这一错误:

启动时遇到的例外......

。 这是一个ug,已经报告。 The original postlink

<><>>> 解决办法是将Cassess降到3.0。

  1. download Cassandra rpm

curl -O https://www.apache.org/dist/cassandra/redhat/30x/cassandra-3.0.15-1.noarch.rpm

or

wget https://www.apache.org/dist/cassandra/redhat/30x/cassandra-3.0.15-1.noarch.rpm

  1. rpm -ivh cassandra-3.0.15-1.noarch.rpm
  2. service cassandra start
  3. 履历 # check cassandra status, it should say

cas(1234)正在运行。

  1. cqlsh #start cassandra

希望有助于你们

just check once already any Cassandra is running by ps ax | grep cassandra

如果是,使用假肢杀死这一过程

杀害

对我的工作





相关问题
OracleConnection throwing exception

I m learning how to work with Oracle and am using C#/Visual Studio. Just as a reference, I m following this simple tutorial, and have all the prerequisites done (database installed and ODAC with dev ...

MySql connection, can I leave it open?

Is it smart to keep the connection open throughout the entire session? I made a C# application that connects to a MySql database, the program both reads and writes to it and the application has to be ...

Creating a database connection pool

Need information on creating a connection pool to the database (irrespective of the database) , and how efficient they are? What are the conditions where they can enhance performance. How to create ...

Using a schema other than dbo in LinqToSql Designer

Is there a way to specify in a data connection or the LinqToSql Designer a schema? Whenever I go to setup a data connection for LinqToSql there doesn t seem to be anyway to specify a schema and I ...

热门标签