问题描述
我刚刚下载tar球并解压缩。我已完成的步骤位于
I just downloaded tar ball and extracted it. Steps i have done is in this question
path/dse/bin/cassandra-cli
它说连接在端口9160拒绝
It says Connection refused at port 9160
netstat -plten
在9160上没有返回任何进程。因此,cassandra服务未启动。如何开始呢?我需要设置任何env变量或配置更改?我正在设置单节点设置。
returns no process on 9160. So cassandra service is not started. How to start it? DO i need to set any env variables or config changes? I am setting up just single node setup.
org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
at org.apache.thrift.transport.TSocket.open(TSocket.java:183)
at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.ja va:81)
.........................
Exception connecting to 127.0.0.1/9160. Reason: Connection refused.
Welcome to Cassandra CLI version 1.1.9-dse-2.2.2-SNAPSHOT
帮助?
推荐答案
您要运行 /< dse目录> / bin / dse cassandra
在或
service dse start
在软件包安装上启动DSE。只有当DSE服务正在运行时,才能连接到它。检查它是否正在运行 ps -ef | grep dse
You want to run /<dse directory>/bin/dse cassandra
on a tarball install or service dse start
on a package install to start DSE. Only when the DSE service is running can you connect to it. Check if it's running with ps -ef|grep dse
顺便说一下,注意cassandra-cli已弃用。请改用!
By the way, note that cassandra-cli is deprecated. Use cqlsh instead!
这篇关于无法启动Cassandra服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!