【发布时间】:2018-10-23 08:30:39
【问题描述】:
我使用以下命令在 ubuntu16.04 上安装了 cassandra -
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key A278B781FE4B2BDA
sudo apt update
sudo apt install cassandra
当尝试连接到 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")})
按照here 的建议安装 cassandra-driver 很累。仍然出现同样的错误。
我错过了什么吗?
但是,如果我将 cassandra 作为前台进程启动,即 sudo cassandra -f,它可以工作。
【问题讨论】:
-
我想你已经改变了你的 rpc_address,试着用 rpc_address 和 cqlport 运行 cqlsh。例如 cqlsh
-
你启动 Cassandra 了吗?
-
@ShobanSundar 我试过了。同样的错误。
标签: cassandra ubuntu-16.04 apt-get