Can't able to start Cassandra Services

 ̄綄美尐妖づ 提交于 2019-12-12 05:29:22

问题


I just downloaded tar ball and extracted it. Steps i have done is in this question

path/dse/bin/cassandra-cli

It says Connection refused at port 9160

netstat -plten

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

Any help?


回答1:


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

By the way, note that cassandra-cli is deprecated. Use cqlsh instead!



来源:https://stackoverflow.com/questions/28629833/cant-able-to-start-cassandra-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!