2016-06-09 73 views
1

系統爲Linux 14.04.1-Ubuntu x86_64,200GB空間,8GB內存。一切都在根和用戶都完成。我們使用以下命令安裝卡桑德拉版本3.6.0從datastax(隨後從網站指令:http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html):cassandra未作爲服務運行

$ apt-get update 
$ apt-get install datastax-ddc 

然而,Cassandra是沒有開始的服務。

[email protected]:~# nodetool status 
nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused'. 
[email protected]:~# service cassandra start 
[email protected]:~# service cassandra status 
* Cassandra is not running 

我們可以使用下面的命令手動啓動卡桑德拉:

$ 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 

[email protected]:~# 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 

但是,我們必須開始卡桑德拉的服務。任何建議如何解決這個問題?

回答

0

我認爲端口沒有打開。 嘗試打開以下端口:

Port number Description 
9042 Cassandra client port. 
9160 Cassandra client port (Thrift). 

另外在Cassandra.yaml定義什麼類型的飛賊文件

卡桑德拉節點間端口

Port number Description 
7000 Cassandra inter-node cluster communication. 
7001 Cassandra SSL inter-node cluster communication. 
7199 Cassandra JMX monitoring port. 

卡桑德拉客戶端?

+0

該問題通過使用另一版本的cassandra來解決。上一個是Apache Cassandra™3.x的DataStax發行版。現在我正在使用Apache Cassandra™3.0,問題不復存在。這裏是我現在使用的版本: [http://docs.datastax.com/en/cassandra/3.0/cassandra/install/installDeb.html](http://docs.datastax.com/en/cassandra /3.0/cassandra/install/installDeb.html) – Lauraishere