系统是Linux 14.04.1-Ubuntu x86_64,200GB空间,8GB内存。一切都在root和user中完成。我们使用以下命令从datastax安装了Cassandra 3.6.0版(遵循网站上的说明:http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html):
$ apt-get update
$ apt-get install datastax-ddc
然而,cassandra并非作为服务启动。
root@e7:~# nodetool status
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'.
root@e7:~# service cassandra start
root@e7:~# service cassandra status
* Cassandra is not running
我们可以使用以下命令手动启动Cassandra:
$ cassandra -R -f
...
INFO 18:45:02 Starting listening for CQL clients on /127.0.0.1:9042 (unencrypted)...
INFO 18:45:02 Binding thrift service to /127.0.0.1:9160
INFO 18:45:02 Listening for thrift clients...
INFO 18:45:12 Scheduling approximate time-check task with a precision of 10 milliseconds
root@e7:~# nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 153.45 KiB 256 100.0% 28ba16df-1e4c-4a40-a786-ebee140364bf rack1
但是,我们必须启动cassandra作为服务。有任何建议如何解决问题?
答案 0 :(得分:1)
答案 1 :(得分:0)
我认为端口没有打开。 尝试打开以下端口:
Cassandra节点间端口
Port number Description
7000 Cassandra inter-node cluster communication.
7001 Cassandra SSL inter-node cluster communication.
7199 Cassandra JMX monitoring port.
Cassandra客户端端口
Port number Description
9042 Cassandra client port.
9160 Cassandra client port (Thrift).
Cassandra.yaml文件中还定义了哪种类型的Snitch?